Skip to content

Copilot GitHub Actions Locks Refactoer - #103

Merged
gkostin1966 merged 1 commit into
mainfrom
gh-actions-lock
Dec 4, 2026
Merged

gkostin1966 merged 1 commit into
mainfrom
gh-actions-lock

Conversation

@gkostin1966

Copy link
Copy Markdown
Collaborator

References

Description

Adopt GitHub Actions workflow dependency lockfiles so every workflow runs the exact, reviewed commit of each action, even if a tag or branch ref moves. Adds a CI check that keeps the lockfile valid.

Instructions for Reviewers

List of changes in this PR:

  • Added .github/workflows/actions.lock, generated with gh actions-lock. It pins all actions (and the transitive dependency of Wandalen/wretry.action) to verified commits.
  • build.yml, codescan.yml, docker.yml and label_merge_conflicts.yml: partial refs were narrowed to full tags (e.g. actions/checkout@v3 -> @v3.7.0, docker/build-push-action@v3 -> @v3.3.1). These are the same major versions as before; only the ref is more precise.
  • Added .github/workflows/verify-lockfile.yml, which runs github/gh-actions-lock@verify/v0.5.1 on pull requests and pushes to main to catch a stale or corrupt lockfile. It is itself locked.
  • No changes to application code. The existing Dependabot github-actions entry needs no changes, because Dependabot regenerates the lockfile entry in the same update PR.

Notes:

  • github/codeql-action@v2 was left as a floating major tag (latest is v4.39.5). Upgrading it is out of scope here.
  • Optionally, an admin can enable the Require lockfile policy to enforce adoption.

How to review/test:

  • Run gh extension install github/gh-actions-lock && gh actions-lock --verify. It should report all 7 workflows valid.
  • Check that the lockfile diff only pins the expected actions, and confirm the workflows still run on this PR.

@gkostin1966
gkostin1966 merged commit a5190f5 into main Dec 4, 2026
6 of 10 checks passed
@gkostin1966
gkostin1966 deleted the gh-actions-lock branch December 4, 2026 20:08
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.

1 participant