Skip to content

🌱 Add pinact tooling to pin and update GitHub Actions - #182

Open
djzager wants to merge 2 commits into
konveyor:mainfrom
djzager:seedling/action-pin-updater
Open

djzager wants to merge 2 commits into
konveyor:mainfrom
djzager:seedling/action-pin-updater

Conversation

@djzager

@djzager djzager commented Aug 26, 2026

Copy link
Copy Markdown
Member

Note

Not urgent — intended to merge after feature freeze. This is CI/toolchain
hygiene, not a feature. Holding until after freeze so it doesn't compete with
in-flight feature work.

What

Give the repo a deterministic way to pin and update the GitHub Actions and
reusable workflows we consume, so keeping SHA pins current never requires
hand-editing 40-char hashes (or asking an LLM to do it).

Uses pinact, installed via the
existing go-install-tool Makefile pattern.

Changes

  • Makefile: install pinact (v4.1.1); add three targets:
    • make update-actions — bump every third-party Action/reusable workflow to
      the latest version and re-pin to a full commit SHA.
    • make pin-actions — pin any unpinned ref at its current version.
    • make verify-actions — offline check that every ref is SHA-pinned (no
      GitHub API, no token).
  • .pinact.yaml: ignore konveyor first-party refs, which intentionally
    track main (the SHA + # main pins, and release-tools/cmd/verify-pr@main,
    a bare branch ref that can't be tag-pinned).
  • .github/workflows/lint.yml: new actions-pinned job running
    make verify-actions, so an unpinned action fails CI going forward.
  • .github/workflows/pr-checks.yml: actions/checkout@v4 → SHA
    (# v4.4.0) — done by pinact, dogfooding the tool.

Notes

  • verify-actions is offline (-no-api), so the CI check needs no token.
  • update-actions calls the GitHub API; set GITHUB_TOKEN locally to avoid
    rate limiting.
  • :seedling: (CI/toolchain) — no changelog fragment required.

@coderabbitai

coderabbitai Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: fba2f3fe-9501-407f-9e04-9b700abf6573


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Pin every third-party Action and reusable workflow to a full commit SHA,
and keep those pins current deterministically with pinact — no LLM, no
hand-editing 40-char hashes.

- Makefile: install pinact (v4.1.1) via the go-install-tool pattern; add
  pin-actions (pin at current version), update-actions (bump + re-pin),
  and verify-actions (offline SHA-pinned check, no token).
- .pinact.yaml: ignore konveyor first-party refs, which intentionally
  track main (SHA + '# main', and release-tools/cmd/verify-pr@main).
- lint.yml: add an 'actions-pinned' CI job running 'make verify-actions'.
- pr-checks.yml: pin actions/checkout@v4 -> SHA (done by pinact).

Signed-off-by: David Zager <david.j.zager@gmail.com>
@djzager
djzager force-pushed the seedling/action-pin-updater branch from a3b2f55 to ec6c74a Compare August 26, 2026 18:15
pinact v4.1.1 requires go >= 1.26.5, but setup-go pins GOTOOLCHAIN=local
to the project's go.mod version, so 'go install' refused to build it. Set
GOTOOLCHAIN=auto on the verify-actions step so Go fetches the toolchain
pinact needs without changing the project's Go version.

Signed-off-by: David Zager <david.j.zager@gmail.com>
@savitharaghunathan

Copy link
Copy Markdown
Member

@djzager should this be a part of release-tools repo as well? is there an easy to way to update all the active repos at once? I understand this is out of scope for this issue/pr, but wanted to ask if this can be scaled to other repos

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