Skip to content

ci: harden GitHub Actions workflows#14

Merged
flavorjones merged 4 commits intomasterfrom
harden-github-actions
Mar 20, 2026
Merged

ci: harden GitHub Actions workflows#14
flavorjones merged 4 commits intomasterfrom
harden-github-actions

Conversation

@flavorjones
Copy link
Member

Summary

  • Add zizmor and actionlint CI job
  • Configure dependabot with batched updates and cooldown periods
  • Pin all GitHub Actions to SHA hashes
  • Fix excessive-permissions and artipacked findings
  • Scope all permissions to job-level

Test plan

  • CI passes (lint-actions job runs clean)
  • Existing test job unaffected

🤖 Generated with Claude Code

flavorjones and others added 4 commits March 20, 2026 16:35
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>
Set permissions: {} at workflow level with scoped contents: read per job.
Add persist-credentials: false to tests checkout.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 20, 2026 21:18
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens the repository’s GitHub Actions and dependency update automation by reducing default token permissions, pinning actions by commit SHA, and adding workflow lint/audit checks.

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 a lint-actions CI job to run actionlint and zizmor.
  • Scope GitHub token permissions to the job level and disable default workflow permissions.
  • Add Dependabot configuration for GitHub Actions and Bundler updates (grouping/scheduling).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
.github/workflows/ci.yml Adds an actions-audit job, pins actions to SHAs, and scopes permissions per job.
.github/dependabot.yml Introduces Dependabot update configuration for GitHub Actions and Bundler.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@flavorjones flavorjones merged commit b66a020 into master Mar 20, 2026
11 checks passed
@flavorjones flavorjones deleted the harden-github-actions branch March 20, 2026 23:32
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