Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value 'release' is not valid for environment in a job #402

Open
zliang-akamai opened this issue Oct 10, 2024 · 0 comments
Open

Value 'release' is not valid for environment in a job #402

zliang-akamai opened this issue Oct 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zliang-akamai
Copy link

zliang-akamai commented Oct 10, 2024

I was following the PyPI doc to setup trusted publisher with GitHub Actions, but I encountered this error in VS Code with the extension.

I think this is a false positive becauseenvironment seems to be able to be an arbitrary string, as the GitHub doc describes.

I was able to trace the issue down to the language server's definition of the environment value, and also the code that validated it but failed. I didn't have time to dig in further, and hope this helps.

image
@zliang-akamai zliang-akamai added the bug Something isn't working label Oct 10, 2024
@zliang-akamai zliang-akamai changed the title Value 'release' is not valid for environment in a workflow Value 'release' is not valid for environment in a job Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog 🗒
Development

No branches or pull requests

1 participant