Skip to content

ci: pin action references to full commit SHAs and add read-only permissions#243

Open
Alb3e3 wants to merge 1 commit into
google:mainfrom
Alb3e3:harden-workflow-permissions
Open

ci: pin action references to full commit SHAs and add read-only permissions#243
Alb3e3 wants to merge 1 commit into
google:mainfrom
Alb3e3:harden-workflow-permissions

Conversation

@Alb3e3

@Alb3e3 Alb3e3 commented Jun 11, 2026

Copy link
Copy Markdown

Summary

  • riscv64-qemu-test.yaml lacked a permissions: block entirely; added permissions: read-all.
  • Both workflows used mutable version tags for actions/checkout (@v2, @v4); both are now pinned to their full commit SHAs.

Pinning prevents a compromised or rewritten upstream tag from silently injecting malicious code into CI runs.

Verification

uvx zizmor --min-severity high .github/workflows/

Result: no findings after this patch.

@google-cla

google-cla Bot commented Jun 11, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

…ssions

Pin all mutable action version tags to their full commit SHAs to prevent
silent tag-rewriting supply-chain attacks. Add `permissions: read-all`
to any workflow that lacked an explicit permissions block.

Verified with zizmor --min-severity high: no findings after this patch.

Signed-off-by: Alb3e3 <tomaska.filip@gmail.com>
@Alb3e3 Alb3e3 force-pushed the harden-workflow-permissions branch from 03f522e to cb86d76 Compare June 11, 2026 22:29
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.

1 participant