ci: harden GitHub Actions workflows#57
Conversation
There was a problem hiding this comment.
Pull request overview
This PR hardens the repository’s CI by scoping GitHub Actions permissions, pinning action dependencies, and adding automated workflow auditing plus Dependabot configuration.
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.
Changes:
- Add workflow-level
permissions: {}and job-level least-privilege permissions, plus disable checkout credential persistence. - Introduce a new
lint-actionsjob that runsactionlintandzizmor. - Add
.github/dependabot.ymlto manage GitHub Actions and Bundler updates (with grouping and pacing configuration).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
.github/workflows/build.yml |
Pins actions to SHAs, scopes permissions, adds workflow auditing, and annotates service container image pinning exceptions. |
.github/dependabot.yml |
Adds Dependabot configuration for GitHub Actions and Bundler dependencies. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… cooldowns 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 container images is nontrivial and version tags are acceptable for CI service containers. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Set permissions: {} at workflow level and scope contents: read per job.
Add persist-credentials: false to all checkout steps.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Digest pinning for container images is nontrivial and version tags are acceptable for CI service containers. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
716eb16 to
876f986
Compare
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Test plan
🤖 Generated with Claude Code