ci: harden GitHub Actions workflows#1284
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…ng and cooldowns Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…nd bin/ci Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Set workflow-level permissions: {} and add per-job contents: read.
Add persist-credentials: false to all checkout steps.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Pull request overview
This PR hardens the repository’s GitHub Actions posture by adding workflow lint/audit checks, scoping permissions more tightly, pinning actions to SHAs, and introducing Dependabot configuration for batched updates.
Changes:
- Add a dedicated
lint-actionsCI job runningactionlintandzizmor, and set default workflow permissions to none with job-level scoping. - Pin GitHub Actions used in CI to specific commit SHAs and disable persisted checkout credentials.
- Add local workflow linting hooks to
bin/setup/bin/ci, plus a new Dependabot config with grouping and cooldown settings.
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.
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
bin/setup |
Installs local workflow linting tools (actionlint/shellcheck/zizmor) during developer setup. |
bin/ci |
Runs local workflow linting (when tools are available) before executing the test suite. |
.github/workflows/ci.yml |
Adds lint-actions, scopes permissions to job-level, and pins actions to SHAs. |
.github/dependabot.yml |
Configures grouped Dependabot updates with weekly cadence and cooldown windows. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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