Skip to content

Add dependabot config and pin GitHub Actions to a commit SHA - #1073

Merged
vharseko merged 2 commits into
OpenIdentityPlatform:masterfrom
vharseko:feature/github-actions-dependabot
Sep 23, 2026
Merged

vharseko merged 2 commits into
OpenIdentityPlatform:masterfrom
vharseko:feature/github-actions-dependabot

Conversation

@vharseko

Copy link
Copy Markdown
Member

Summary

  • Add .github/dependabot.yml so Dependabot checks github-actions in .github/workflows weekly, groups all action bumps into one PR, and labels it ci/dependencies — as in Harden GitHub Actions workflows: token permissions, SHA pinning, latest actions OpenIG#170.
  • Pin the remaining actions/* and github/codeql-action/* refs that were still on a moving @vX tag to their current commit SHA, with a trailing # vX.Y.Z comment, matching the SHA-pinning style already used for docker/*, softprops/* and aquasecurity/* actions in these workflows.

Test plan

  • Verified no @vX-only action references remain in .github/workflows/*.yml

As in OpenIdentityPlatform/OpenIG#170: weekly check of github-actions
in .github/workflows, grouped into a single PR, labeled ci/dependencies.
Tag refs like @v6 can be repointed by the maintainer; the trailing
comment records the version each SHA currently resolves to, matching
what the new dependabot.yml now keeps updated.
@vharseko vharseko added CI dependencies Pull requests that update a dependency file labels Sep 18, 2026

@maximthomas maximthomas 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.

praise: Each moving tag is replaced by the commit it resolves to today, so the workflows run exactly the code they ran before.

  • Each pinned SHA matches its tag per git ls-remote. For example, actions/cache@v5 became caa296126883…, which is both v5.1.0 and v5, and actions/checkout@v6 became d23441a48e51…, which is v6.1.0.
  • github/codeql-action is pinned to 1c5b675653bb…, the commit the annotated tag v4.38.1 points to, and not to the tag object c23de5a82f64….
  • No uses: without a 40-hex SHA is left under .github/workflows, counting the commented-out refs in codeql.yml. CI is green at this head (runs 35380139637 and 35380139661).

@vharseko
vharseko merged commit f5dc1c1 into OpenIdentityPlatform:master Sep 23, 2026
24 checks passed
@vharseko
vharseko deleted the feature/github-actions-dependabot branch September 23, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants