Skip to content

use sha pin (with comment) format for generated actions#23312

Merged
cburroughs merged 1 commit intopantsbuild:mainfrom
cburroughs:csb/pin-action-gen
May 6, 2026
Merged

use sha pin (with comment) format for generated actions#23312
cburroughs merged 1 commit intopantsbuild:mainfrom
cburroughs:csb/pin-action-gen

Conversation

@cburroughs
Copy link
Copy Markdown
Contributor

Per the GitHub Action best practices we recently enabled at #23249, we should pin each action to a SHA so that the reference is actually immutable.

This will -- I hope -- knock out a large chunk of the 421 alerts we currently get from zizmor. The next followup would then be upgrades and harmonizing the generated and none-generated pins.

Notice: This idea was suggested by Claude while going over pinact output and I was surprised to see that post processing the yaml wasn't too gross.

@cburroughs cburroughs self-assigned this May 4, 2026
@cburroughs cburroughs added the release-notes:not-required [CI] PR doesn't require mention in release notes label May 4, 2026
Per the GitHub Action best practices we recently enabled at pantsbuild#23249, we
should pin each action to a SHA so that the reference is actually
immutable.

This will -- I hope -- knock out a large chunk of the 421 alerts we
currently get from zizmor.  The next followup would then be upgrades
and harmonizing the generated and none-generated pins.

Notice: This idea was suggested by Claude while going over pinact
output and I was surprised to see that post processing the yaml wasn't
too gross.
@cburroughs cburroughs force-pushed the csb/pin-action-gen branch from 356d41c to 64faa88 Compare May 4, 2026 19:45
@cburroughs cburroughs marked this pull request as ready for review May 4, 2026 20:47
@cburroughs cburroughs requested a review from sureshjoshi May 4, 2026 20:47
@sureshjoshi
Copy link
Copy Markdown
Member

Notice: This idea was suggested by Claude while going over pinact output and I was surprised to see that post processing the yaml wasn't too gross.

Not too sure what this means.

How were the SHAs discovered? Did you use zizmor --fix or anything?

@cburroughs
Copy link
Copy Markdown
Contributor Author

How were the SHAs discovered? Did you use zizmor --fix or anything?

I used https://github.com/suzuki-shunsuke/pinact because I didn't realize zizmor gained a --fix mode this year.

@cburroughs cburroughs merged commit 03dd363 into pantsbuild:main May 6, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes:not-required [CI] PR doesn't require mention in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants