[LOW] Pin workflow actions and restrict CI permissions - #392
Open
OskarEichler wants to merge 1 commit into
Open
Conversation
OskarEichler
force-pushed
the
codex/security-harden-workflows
branch
from
September 4, 2026 16:07
f32d42e to
87a2dfc
Compare
OskarEichler
force-pushed
the
codex/security-harden-workflows
branch
from
September 4, 2026 16:18
87a2dfc to
0ce3444
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pins every third-party action used by the active CI and CodeQL workflows to its current immutable commit, and makes the workflows' token permissions explicit.
Security impact
LOW: mutable action tags can be retargeted upstream, while pull-request CI executes repository-controlled code with the workflow token's implicit permissions. The patch pins the existing action versions without upgrading them, grants normal CI only
contents: read, and keeps CodeQL's requiredsecurity-events: writealongside explicitcontents: read.Pinned revisions:
actions/checkout@v7→3d3c42e5aac5ba805825da76410c181273ba90b1ruby/setup-ruby@v1→95ef2b042f9d7a56d8268cba8559e2842e2ad01bgithub/codeql-action@v4.37.4→f205ea1c3313d32999d8d6a48b4f6530d4437b38Verification
uses:reference is a full 40-character commit SHA.bundle exec rake spec:unit: 874 examples, 0 failures, 2 expected pending.bundle exec standardrb: 175 files, no offenses.git diff --checkpasses.All Ruby-backed checks used Ruby 4.0.6 through rbenv.
Limitations
This does not update action versions or change gem runtime code. Dependabot remains configured to propose GitHub Actions updates.
Breaking changes
None.