Skip to content

Harden GitHub Actions workflows#3

Merged
nickhammond merged 1 commit into
mainfrom
nickhammond/harden-workflows
Apr 20, 2026
Merged

Harden GitHub Actions workflows#3
nickhammond merged 1 commit into
mainfrom
nickhammond/harden-workflows

Conversation

@nickhammond
Copy link
Copy Markdown
Member

Summary

  • Pin actions/checkout to a full SHA (v4.2.2) and set persist-credentials: false on every checkout in test.yml and test-local.yml
  • Add top-level permissions: contents: read to both workflows and route steps.notify.outcome through an env var to avoid expression injection
  • Add .github/CODEOWNERS for .github/workflows/ and .github/dependabot.yml for monthly github-actions updates

Test plan

  • test.yml runs green on push/PR
  • test-local.yml still usable via workflow_dispatch locally

Pin actions/checkout to SHA, add least-privilege permissions,
disable credential persistence, and avoid expression injection
by routing step outcomes through env. Add CODEOWNERS for
workflows and enable monthly Dependabot updates.
@nickhammond nickhammond merged commit e28756f into main Apr 20, 2026
8 checks passed
@nickhammond nickhammond deleted the nickhammond/harden-workflows branch April 20, 2026 14:55
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.

1 participant