Skip to content

Commit 6650ee8

Browse files
committed
ci: pin zizmor workflow to commit SHAs of annotated tags
The previous SHAs for astral-sh/setup-uv@v6 and github/codeql-action@v3 were the annotated tag-object SHAs rather than the underlying commit SHAs. GitHub Actions accepts both, but zizmor's impostor-commit fast path resolves SHAs against the action repo's tag list and falls back to a GitHub API call when the SHA matches only a moving major-version tag, producing warnings. Repinning to the dereferenced commit SHAs (which also correspond to immutable point-release tags) lets zizmor verify them locally and silences the warnings.
1 parent 8f2bdf7 commit 6650ee8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/zizmor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
persist-credentials: false
2828

2929
- name: Setup uv
30-
uses: astral-sh/setup-uv@d0d8abe699bfb85fec6de9f7adb5ae17292296ff # v6
30+
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
3131

3232
- name: Run zizmor
3333
run: uvx zizmor --format=sarif . > results.sarif
@@ -36,7 +36,7 @@ jobs:
3636

3737
- name: Upload SARIF file
3838
if: always()
39-
uses: github/codeql-action/upload-sarif@52485aec7be33610227643b0fe83936b8b5f061a # v3
39+
uses: github/codeql-action/upload-sarif@7fd177fa680c9881b53cdab4d346d32574c9f7f4 # v3.35.4
4040
with:
4141
sarif_file: results.sarif
4242
category: zizmor

0 commit comments

Comments
 (0)