vscode-github-actions icon indicating copy to clipboard operation
vscode-github-actions copied to clipboard

Value 'release' is not valid for `environment` in a job

Open zliang-akamai opened this issue 1 year ago • 0 comments

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 avatar Oct 10 '24 04:10 zliang-akamai