Skip to content

ci: pin CodeQL workflow actions to commit SHAs#154

Merged
mcrauwel merged 1 commit into
mainfrom
mcrauwel/pin-codeql-actions
Jun 18, 2026
Merged

ci: pin CodeQL workflow actions to commit SHAs#154
mcrauwel merged 1 commit into
mainfrom
mcrauwel/pin-codeql-actions

Conversation

@mcrauwel

Copy link
Copy Markdown
Member

Summary

The "Analyze (go)" (CodeQL) check fails on every PR with:

The actions actions/checkout@v3, actions/setup-go@v3, and github/codeql-action/init@v2 are not allowed in planetscale/airbyte-source because all actions must be pinned to a full-length commit SHA.

The org now enforces commit-SHA pinning for GitHub Actions, and .github/workflows/codeql.yml still referenced actions by version tag.

Changes

Pin every action in the CodeQL workflow to its release commit SHA (with a # vX comment for readability). Bumped off the deprecated majors while here:

  • actions/checkout v3v4 (34e1148)
  • actions/setup-go v3v5 (40f1582)
  • github/codeql-action/{init,autobuild,analyze} v2v3 (dd903d2)

This unblocks CI on all open PRs (including #153).

🤖 Generated with Claude Code

The org now requires all GitHub Actions to be pinned to a full-length
commit SHA, which was failing the "Analyze (go)" check on every PR.

Pin each action to its release commit SHA and bump off the deprecated
majors while here: actions/checkout v3 -> v4, actions/setup-go v3 -> v5,
github/codeql-action v2 -> v3.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mcrauwel mcrauwel merged commit 0da41fe into main Jun 18, 2026
3 checks passed
@mcrauwel mcrauwel deleted the mcrauwel/pin-codeql-actions branch June 18, 2026 15:53
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