vscode-github-actions
vscode-github-actions copied to clipboard
Value 'release' is not valid for `environment` in a job
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.