Skip to content

fix: harden GitHub Actions workflows#161

Merged
kapravel merged 2 commits intomainfrom
fix/zizmor-workflow-security
Mar 25, 2026
Merged

fix: harden GitHub Actions workflows#161
kapravel merged 2 commits intomainfrom
fix/zizmor-workflow-security

Conversation

@reberhardt7
Copy link
Copy Markdown
Contributor

@reberhardt7 reberhardt7 commented Mar 25, 2026

Summary

  • Add permissions: {} to test workflow to enforce least-privilege (fixes excessive-permissions)
  • Upgrade actions/checkout to v6.0.2 with persist-credentials: false in both workflows (fixes artipacked)
  • Remove npm cache from publish workflow to prevent cache-poisoning attacks
  • Add dependabot cooldown configuration to limit update frequency
  • Disable secrets-outside-env rule via .github/zizmor.yml (repo-level suppression)

Remaining findings

  • 2 medium archived-uses warnings for actions/create-release and actions/upload-release-asset in the provenance workflow — these are archived repos and would need replacement with maintained alternatives (functional change, out of scope)

- Add `permissions: {}` to test workflow to fix excessive-permissions
- Upgrade actions/checkout to v6.0.2 and add persist-credentials: false
- Remove npm cache from publish workflow to prevent cache-poisoning
- Add dependabot cooldown configuration (auto-fix)
- Disable secrets-outside-env rule via .github/zizmor.yml

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@socket-security
Copy link
Copy Markdown

socket-security bot commented Mar 25, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedgithub/​actions/​checkout@​de0fac2e4500dabe0009e67214ff5f5447ce83dd100100100100100

View full report

@socket-security-staging
Copy link
Copy Markdown

socket-security-staging bot commented Mar 25, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedgithub/​actions/​checkout@​de0fac2e4500dabe0009e67214ff5f5447ce83dd92100100100100

View full report

@reberhardt7 reberhardt7 changed the title fix: harden GitHub Actions workflows (zizmor) fix: harden GitHub Actions workflows Mar 25, 2026
- Disable setup-node package-manager cache in release workflow (cache-poisoning)
- Replace archived create-release/upload-release-asset with gh release create (archived-uses, superfluous-actions)
@kapravel kapravel merged commit 4f490c3 into main Mar 25, 2026
7 checks passed
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