Upgrade GitHub Actions - #2106
Open
cclauss wants to merge 1 commit into
Open
Conversation
webknjaz
approved these changes
Aug 14, 2026
webknjaz
enabled auto-merge
August 14, 2026 23:07
|
|
||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - uses: actions/checkout@v7 |
| persist-credentials: false | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v6 | ||
| uses: actions/setup-python@v7 |
| run: python3 -m build | ||
| - name: Store the distribution packages | ||
| uses: actions/upload-artifact@v5 | ||
| uses: actions/upload-artifact@v7 |
| steps: | ||
| - name: Download all the dists | ||
| uses: actions/download-artifact@v6 | ||
| uses: actions/download-artifact@v8 |
Do not encourage visitors to rely on out-of-date GitHub Actions.
auto-merge was automatically disabled
August 14, 2026 23:56
Head branch was pushed to by a user without write access
cclauss
commented
Aug 15, 2026
Author
There was a problem hiding this comment.
% GH_TOKEN=$(gh auth token) zizmor --fix=all source/guides/github-actions-ci-cd-sample/publish-to-pypi.yml
The review comments were fixed, but should we go full-zizmor or leave the other violations as is?
Unfortunately, zizmor cannot autofix:
uses: pypa/gh-action-pypi-publish@release/v1
but perhaps these docs want to continue to advocate that.
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| name: python-package-distributions | ||
| path: dist/ |
Author
There was a problem hiding this comment.
zizmor: warning[excessive-permissions]: overly broad permissions
| - name: Publish distribution 📦 to TestPyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| with: | ||
| repository-url: https://test.pypi.org/legacy/ |
Author
There was a problem hiding this comment.
zizmor: warning[excessive-permissions]: overly broad permissions
cclauss
commented
Aug 15, 2026
| name: python-package-distributions | ||
| path: dist/ | ||
| - name: Publish distribution 📦 to PyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 |
Author
There was a problem hiding this comment.
Suggested change
| uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2 |
| name: python-package-distributions | ||
| path: dist/ | ||
| - name: Publish distribution 📦 to TestPyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 |
Author
There was a problem hiding this comment.
Suggested change
| uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Do not encourage visitors to rely on out-of-date GitHub Actions.
📚 Documentation preview 📚: https://python-packaging-user-guide--2106.org.readthedocs.build/en/2106/