Skip to content

Conversation

@henryiii
Copy link
Contributor

@henryiii henryiii commented Jan 7, 2026

Followup to #893, adding zizmor and addressing issues it found.

@henryiii henryiii force-pushed the henryiii/ci/zizmor branch 2 times, most recently from 9593489 to adc5c26 Compare January 7, 2026 22:33
url: https://pypi.org/project/packaging/${{ github.ref_name }}
permissions:
id-token: write
if: '!github.event.repository.fork'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not from zizmor, it just keeps forks that trigger this from trying to upload to PyPI.

- name: Check ref is the commit SHA
# require SHA as tags and branches are mutable
run: test "${{ inputs.ref }}"
run: test "${INPUTS_REF}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This protects against code expansion.

@henryiii henryiii force-pushed the henryiii/ci/zizmor branch from adc5c26 to 9434e5e Compare January 7, 2026 23:20
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
@henryiii henryiii force-pushed the henryiii/ci/zizmor branch from 9434e5e to 5b1d7a9 Compare January 8, 2026 16:13
@henryiii henryiii merged commit 5147b37 into pypa:main Jan 8, 2026
40 checks passed
@henryiii henryiii deleted the henryiii/ci/zizmor branch January 8, 2026 20:14
@henryiii
Copy link
Contributor Author

henryiii commented Jan 8, 2026

@brettcannon Okay for me to try to tag 26.0rc1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants