ci: harden GitHub Actions workflows#146
Merged
flavorjones merged 6 commits intomasterfrom Mar 20, 2026
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Digest pinning for service container images is nontrivial and low value for CI test databases. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add persist-credentials: false to test job checkout. Set workflow-level permissions to deny-all and add scoped contents: read to each job. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR hardens the repository’s GitHub Actions security posture by adding workflow auditing and tightening token permissions, while also introducing Dependabot automation for updates.
Changes:
- Add a new
lint-actionsjob that runsactionlintandzizmor, and set default workflow permissions to none with per-job scoping. - Pin GitHub Actions used in CI to commit SHAs and disable credential persistence on checkout.
- Add a new Dependabot configuration to group GitHub Actions updates and apply cooldown periods.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/ci.yml | Adds an Actions-audit job, scopes permissions, and pins action versions for CI hardening. |
| .github/dependabot.yml | Introduces Dependabot config for GitHub Actions + Bundler updates with grouping/cooldowns. |
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rails 6.0/6.1 requires sqlite3 ~> 1.4, but without a constraint in the gemspec, bundler resolves sqlite3 2.x on Ruby 3.0+ which is incompatible. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
Test plan
🤖 Generated with Claude Code