Skip to content

pin actions to sha#2814

Merged
k8s-ci-robot merged 3 commits intokubernetes-client:mainfrom
davidgamero:pin-actions-to-sha
Mar 30, 2026
Merged

pin actions to sha#2814
k8s-ci-robot merged 3 commits intokubernetes-client:mainfrom
davidgamero:pin-actions-to-sha

Conversation

@davidgamero
Copy link
Copy Markdown
Contributor

@davidgamero davidgamero commented Mar 27, 2026

to follow guidance from https://github.com/kubernetes/community/blob/main/github-management/github-actions-policy.md

added zizmor lint step validating SHAs exist and match

if people would prefer to hold off on the lint step i can reduce PR scope to just the pinned SHAs, i added linting to give some way to validate the SHAs are correct

All GitHub Actions MUST be referenced using commit SHA hashes.

using zizmor in the meantime to lint. this will likely be applied via repo/org settings in the future and we can drop that dependency from the test workflow

https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#managing-github-actions-permissions-for-your-repository

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 27, 2026
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 27, 2026
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Mar 27, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 27, 2026
Pin remaining mutable tag references to full commit SHAs with version
comments for traceability. Add zizmor as a CI job to enforce SHA pinning
and detect SHA-to-version-comment mismatches on every push and PR.

Also fix missing @ separator in codeql-analysis.yml analyze action reference.
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Mar 27, 2026
@brendandburns
Copy link
Copy Markdown
Contributor

This looks good to me, thanks for doing it!

I'll hold off merging for another day or two to give others a chance to look

@davidgamero davidgamero marked this pull request as ready for review March 29, 2026 17:16
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 29, 2026
@mstruebing
Copy link
Copy Markdown
Member

Looks good to me as well, I will not trigger prow right now for the same reason as Brendan.

Copy link
Copy Markdown
Contributor

@cjihrig cjihrig left a comment

Choose a reason for hiding this comment

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

LGTM as well. I'll merge it as I'm not sure there is anyone else to wait on reviewing 😄

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 30, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cjihrig, davidgamero

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [cjihrig,davidgamero]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit b653816 into kubernetes-client:main Mar 30, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants