Conversation
This addresses ["unpinned action reference"](https://docs.zizmor.sh/audits/#unpinned-uses) warnings [seen](https://github.com/jspecify/jspecify/actions/runs/30497738162/job/90730495179) during #860. I thought I would be all clever and automate it: ``` for F in $(grep -hoP 'uses: \K.*' .github/workflows/*.yml | sort -u); do R=${F%@*}; V=${F#*@}; git ls-remote https://github.com/${R}.git ${V} | awk '{ print $1 }'; done ``` But that's wrong for setup-gradle. I looked that one up manually (https://github.com/gradle/actions/releases/tag/v6.2.0 -> gradle/actions@3f131e8). Then: ``` perl -pi -e "s'actions/checkout@v7'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1'; s'actions/deploy-pages@v5'actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128'; s'actions/setup-java@v5'actions/setup-java@e498d2a66a953492f322542257b22125c989b422/'; s'actions/upload-pages-artifact@v5'actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9'; s'gradle/actions/setup-gradle@v6'gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92/'" .github/workflows/*.yml ``` I could instead have tried to install zizmor locally and run [its fix mode](https://docs.zizmor.sh/usage/#auto-fixing-results).
This was referenced Jul 30, 2026
copybara-service Bot
pushed a commit
to google/escapevelocity
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/guava-beta-checker
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/compile-testing
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/jimfs
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/flogger
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/caliper
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/truth
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/auto
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/guava
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/guava-beta-checker
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/jimfs
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/compile-testing
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/truth
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/escapevelocity
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/caliper
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/auto
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/flogger
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/guava
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956550050
copybara-service Bot
pushed a commit
to google/escapevelocity
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956568861
copybara-service Bot
pushed a commit
to google/jimfs
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956568861
copybara-service Bot
pushed a commit
to google/auto
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956568861
copybara-service Bot
pushed a commit
to google/caliper
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956568861
copybara-service Bot
pushed a commit
to google/compile-testing
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956568861
copybara-service Bot
pushed a commit
to google/guava-beta-checker
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956568861
copybara-service Bot
pushed a commit
to google/truth
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956568861
copybara-service Bot
pushed a commit
to google/guava
that referenced
this pull request
Jul 30, 2026
See https://docs.zizmor.sh/audits/#artipacked. Compare jspecify/jspecify#861 RELNOTES=n/a PiperOrigin-RevId: 956568861
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.
This addresses "unpinned action reference" warnings seen during #860.
I thought I would be all clever and automate it:
But that's wrong for setup-gradle. I looked that one up manually (https://github.com/gradle/actions/releases/tag/v6.2.0 -> gradle/actions@3f131e8). Then:
[edit: And then I had some typos in this second command. I have manually fixed the results and tried to update the regex here.]
I could instead have tried to install zizmor locally and run its fix mode.