Skip to content

Update to current setup-go version#13516

Merged
AkihiroSuda merged 1 commit into
containerd:mainfrom
estesp:setup-go-node20-fix
Jun 11, 2026
Merged

Update to current setup-go version#13516
AkihiroSuda merged 1 commit into
containerd:mainfrom
estesp:setup-go-node20-fix

Conversation

@estesp

@estesp estesp commented Jun 2, 2026

Copy link
Copy Markdown
Member

Update the setup-go version in our private action yml to:

  1. be pinned by hash (with comment to version string)
  2. remove cache disable that was fixed 3 years ago

Apparently dependabot doesn't reach into this directory, so we were close to the cutoff date for Node 20 based actions to start to fail intermittently (in a couple weeks)

Update the setup-go version in our private action yml to
1) be pinned by hash (with comment to version string)
2) remove cache disable that was fixed 3 years ago

Signed-off-by: Phil Estes <[email protected]>
Copilot AI review requested due to automatic review settings June 2, 2026 17:23
@estesp estesp added cherry-pick/1.7.x Change to be cherry picked to release/1.7 branch cherry-pick/2.0.x Change to be cherry picked to release/2.0 branch cherry-pick/2.1.x Change to be cherry picked to release/2.1 branch labels Jun 2, 2026
@estesp estesp added cherry-pick/2.2.x Change to be cherry picked to release/2.2 branch cherry-pick/2.3.x Change to be cherry picked to release/2.3 labels Jun 2, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Jun 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the repository’s reusable composite action for installing Go to use the current actions/setup-go release pinned by commit SHA, aligning with the repo’s workflow hardening approach and avoiding failures from deprecated Node runtimes in GitHub-hosted actions.

Changes:

  • Pin actions/setup-go to the v6.4.0 commit SHA (with an inline version comment).
  • Remove the explicit cache: false override so the action uses the default caching behavior again.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: ${{ inputs.go-version }}
cache: false # see actions/setup-go#368

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

interestingly, I think zizmor recommends disabling the cache for cache poisoning attacks; https://github.com/zizmorcore/zizmor/blob/444728cbaaed0758e9f0885e96f608f1f3ed9441/crates/zizmor/src/audit/cache_poisoning.rs#L65

(on my phone, so didn't have their docs at hand)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@estesp do you want to re-disable the cache then?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, I can, but when I read through all the various content on the cache poisoning, all the guidance was concerned with release artifacts, which this specific setup-go is never used in any of our release workflows. However, if we want to be careful, or if there is something I'm not quite getting from the various blog posts on the issue, I'm happy to make the change back.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, in all honesty, I'm not sure how much of an attack vector this specific cache is in our case (unless an untrusted part would end up in the same bit as a trusted part; indeed "release" could be relevant there?).

That said, if it doesn't gain much performance (it may not be, as most things are rather ephemeral), perhaps it won't hurt to do.

FWIW; I opened a (currently draft) PR to add a zizmor workflow, which validates actions against many pitfalls;

It doesn't fail (because it only marks changes as failure), but does produce / upload a report for code scanning; https://github.com/containerd/containerd/actions/runs/26944400275/job/79493627210?pr=13531

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Jun 3, 2026
@AkihiroSuda
AkihiroSuda added this pull request to the merge queue Jun 11, 2026
Merged via the queue into containerd:main with commit 01f6f18 Jun 11, 2026
50 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Jun 11, 2026
@dmcgowan

Copy link
Copy Markdown
Member

/cherry-pick release/2.3

@k8s-infra-cherrypick-robot

Copy link
Copy Markdown

@dmcgowan: new pull request created: #13686

Details

In response to this:

/cherry-pick release/2.3

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick/1.7.x Change to be cherry picked to release/1.7 branch cherry-pick/2.0.x Change to be cherry picked to release/2.0 branch cherry-pick/2.1.x Change to be cherry picked to release/2.1 branch cherry-pick/2.2.x Change to be cherry picked to release/2.2 branch cherry-pick/2.3.x Change to be cherry picked to release/2.3 size/XS

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

10 participants