Skip to content

ci: harden GitHub Actions workflows#3

Merged
flavorjones merged 5 commits intomainfrom
harden-github-actions
Mar 20, 2026
Merged

ci: harden GitHub Actions workflows#3
flavorjones merged 5 commits intomainfrom
harden-github-actions

Conversation

@flavorjones
Copy link
Copy Markdown
Member

Summary

  • Pin all actions to SHA hashes via pinact
  • Fix artipacked findings (add persist-credentials: false)
  • Fix actionlint SC2016 false positive for markdown backticks
  • Add lint-actions CI job (actionlint + zizmor)
  • Add dependabot config for weekly batched github-actions updates

Test plan

  • CI passes (lint-actions job runs clean)

🤖 Generated with Claude Code

flavorjones and others added 5 commits March 20, 2026 11:45
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Neither workflow does git push, so credentials don't need to be persisted.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The backticks in the FOOTER string are literal markdown characters,
not shell command substitution. SC2016 fires because shellcheck sees
backticks inside single quotes and warns, but this is intentional.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 20, 2026 16:19
Copy link
Copy Markdown

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 setup by adding automated workflow linting/auditing and tightening default checkout behavior, while also introducing Dependabot updates for GitHub Actions.

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.
  • Harden workflow checkouts by disabling persisted credentials.
  • Add weekly, grouped Dependabot updates for github-actions, and suppress a ShellCheck/actionlint false positive.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/sensitive-change-gate.yml Adds a targeted ShellCheck suppression for a markdown/backticks-related lint false positive.
.github/workflows/ci.yml Introduces a CI workflow with a GitHub Actions audit job (actionlint + zizmor).
.github/workflows/ai-classify-pr.yml Hardens checkout step to avoid persisted credentials (and pins to SHA).
.github/workflows/ai-breaking-change.yml Hardens checkout step to avoid persisted credentials (and pins to SHA).
.github/dependabot.yml Adds weekly grouped Dependabot updates for GitHub Actions.

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

@flavorjones flavorjones merged commit bad31a4 into main Mar 20, 2026
7 checks passed
@flavorjones flavorjones deleted the harden-github-actions branch March 20, 2026 16:29
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