Skip to content

ci: pin e2e-k8s.yml action refs to commit SHAs - #2216

Merged
TerryHowe merged 1 commit into
oras-project:mainfrom
davi713albano-coder:ci-pin-e2e-k8s-shas
Oct 3, 2026
Merged

TerryHowe merged 1 commit into
oras-project:mainfrom
davi713albano-coder:ci-pin-e2e-k8s-shas

Conversation

@davi713albano-coder

Copy link
Copy Markdown
Contributor

Summary

Pins the last three floating action refs in the repo to commit SHAs, per #2210.

.github/workflows/e2e-k8s.yml was the only workflow of the ten using floating major-version tags. All 23 uses: refs in the other nine are already SHA-pinned; these three were not.

actions/checkout and actions/setup-go reuse the exact SHAs the other workflows already pin, so the repo keeps running a single version of each action:

actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0

helm/kind-action has no existing pin, so it resolves to its latest stable v1 release, v1.15.0 (published 2026-09-02):

helm/kind-action@06c1ae10762d3b9c1644e7fe69596ae519e015a2 # v1.15.0

Dependabot's github-actions ecosystem already runs weekly with a catch-all patterns: ["*"] group, so helm/kind-action is picked up automatically now that it is pinned. No dependabot.yml change needed.

Verification

  • All three SHAs resolve to real commits, confirmed via both git/ref/tags/<tag> and commits/<sha>. helm/[email protected] is a lightweight tag (object.type: commit), so there is no annotated-tag dereference to get wrong.
  • actionlint 1.7.12 passes clean on this file and on the whole workflow directory.
  • The workflow still parses as valid YAML with all 10 steps and unchanged inputs.
  • A repo-wide search for uses:.*@(v\d|main|master) now returns nothing, so no floating refs remain.
  • Apache license header untouched.

Note

This only becomes load-bearing once #2208 makes e2e-k8s the only e2e gate, as the issue notes. It is safe to merge independently since it changes no behavior.

`e2e-k8s.yml` was the only workflow using floating major-version tags.
Pin the three remaining refs to commit SHAs, matching the convention in
every other workflow, so a mutable tag can no longer change CI without a
commit.

`actions/checkout` and `actions/setup-go` reuse the exact SHAs the other
nine workflows already pin, so the repo runs a single version of each.
`helm/kind-action` resolves to its latest stable v1 release, v1.15.0.

Dependabot's `github-actions` ecosystem already uses a weekly catch-all
group, so these stay current automatically.

Closes #2210

Signed-off-by: Davi A.B. <[email protected]>

@TerryHowe TerryHowe left a comment

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.

/lgtm

@codecov

codecov Bot commented Oct 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.14%. Comparing base (1033ebb) to head (3435ac5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2216   +/-   ##
=======================================
  Coverage   88.14%   88.14%           
=======================================
  Files         139      139           
  Lines        6015     6015           
=======================================
  Hits         5302     5302           
  Misses        425      425           
  Partials      288      288           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TerryHowe
TerryHowe merged commit 5c33ab2 into oras-project:main Oct 3, 2026
10 checks passed
@TerryHowe

Copy link
Copy Markdown
Member

Thanks!

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.

2 participants