-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Use environment variables instead of contexts #1765
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
Conversation
Fixes potential issues found by zizmor: https://github.com/woodruffw/zizmor
Fixes potential issue found by zizmor: https://github.com/woodruffw/zizmor
I've also added a This might be overkill for fixing, as in theory the directory should never be added into a package. However, if for some bizarre reason a mistake is made - it would be good to help prevent it. After this, zizmor is happy with the file:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks.
I added a link to the relevant zizmor issue explanation to the original bug report.
PyPI still has its webscraping protections turned on (#1744), so I expect the merge request to fail (alas) |
Pending checks seem to be in a weird state. Closing/reopening to try to kick them. |
Huh, looks like it may have been a bug in the new check review widget (the workflows needed approval to run, but the review widget didn't tell me that, I had to go look at the Actions UI). Edit: checking the feedback request post at https://github.com/orgs/community/discussions/143787, that's a known limitation of the new widget (and fixing it is already on their TODO list) |
@ncoghlan I've working around that by manually going to the checks/actions tab and clicking the button in the workflow.. |
Closes #1748
Updates the "Signing the distribution packages" section to use environment variables rather than GitHub Actions context variables. No additional setting of environment variables are needed - these are all set/available already.
I've got a repo where we're using trusted publishing, although it's a slight variation on this, but hopefully it's an example that the environment variables work just fine:
https://github.com/developersociety/django-findreplace/blob/7fcf87397590b984dacaca58719f2d8b737d4f77/.github/workflows/publish.yml#L81
https://github.com/developersociety/django-findreplace/actions/runs/12457101550
📚 Documentation preview 📚: https://python-packaging-user-guide--1765.org.readthedocs.build/en/1765/