Skip to content

.github/workflows/test.yml: pin actions to commit SHAs #350

Merged
k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
dims:pin-actions
May 7, 2026
Merged

.github/workflows/test.yml: pin actions to commit SHAs #350
k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
dims:pin-actions

Conversation

@dims
Copy link
Copy Markdown
Member

@dims dims commented May 7, 2026

Pins all references to current major-version commits and standardizes the action versions across jobs:

actions/checkout@93cb6ef # v5
actions/setup-go@4a36011 # v6
golangci/golangci-lint-action@55c2c14 # v6

Also bumps the apidiff job's Go version from 1.23.x to 1.25.x.

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Release note:

NONE

…ff Go version

The repo's CI policy now rejects unpinned GitHub Actions: any uses
clause referring to a tag (vN) instead of a full-length commit SHA
fails Set up job with "are not allowed in kubernetes/utils because
all actions must be pinned to a full-length commit SHA."

Pins all references to current major-version commits and standardizes
the action versions across jobs:

  actions/checkout@93cb6ef # v5
  actions/setup-go@4a36011 # v6
  golangci/golangci-lint-action@55c2c14 # v6

Also bumps the apidiff job's Go version from 1.23.x to 1.25.x. The
job installs golang.org/x/exp/cmd/apidiff@latest, which now requires
Go 1.25.0 to build:

  golang.org/x/exp/cmd/apidiff@latest:
    golang.org/x/exp@v0.0.0-... requires go >= 1.25.0
    (running go 1.23.12; GOTOOLCHAIN=local)

The Go version used to build the apidiff tool is independent of the
module's go directive, so 1.25.x for that one job is safe.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
@k8s-ci-robot k8s-ci-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label May 7, 2026
@k8s-ci-robot k8s-ci-robot requested review from aojea and thockin May 7, 2026 15:37
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 7, 2026
Copy link
Copy Markdown
Contributor

@pohly pohly left a comment

Choose a reason for hiding this comment

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

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dims, pohly

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:

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 ff6756f into kubernetes:master May 7, 2026
14 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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants