Skip to content

Dev to main - Harden GitHub Actions workflows: AppSec Findings - #176

Closed
sankettangade wants to merge 1 commit into
mainfrom
workflow-hardening-to-main
Closed

Dev to main - Harden GitHub Actions workflows: AppSec Findings#176
sankettangade wants to merge 1 commit into
mainfrom
workflow-hardening-to-main

Conversation

@sankettangade

Copy link
Copy Markdown
Contributor

What

Hardening our GitHub Actions workflows with zizmor — same change already merged to dev, brought to main via a clean cherry-pick (the rest of dev isn't ready for main yet). Same approach as aws-sdk-net-staging#1375.

Changes

  • Move untrusted ${{ }} values into env: vars to prevent script injection
  • Pin all actions to commit SHAs (no version bumps)
  • Set top-level permissions: {} with minimal per-job grants
  • Add concurrency groups and job names
  • Pin the semgrep container image by digest

Notes

Workflow files only — no behavior changes. The release/sync checkouts intentionally keep persisted credentials (they push afterwards). Verified clean with zizmor; only expected artipacked findings remain on those push steps.

- Move untrusted ${{ }} into env vars to prevent script injection
- Pin all actions to commit SHAs (no version bumps)
- Set top-level permissions: {} with minimal job-level grants
- Add concurrency groups and job names
- Pin semgrep container image by digest
@sankettangade sankettangade added the Release Not Needed Add this label if a PR does not need to be released. label Jun 30, 2026
@sankettangade sankettangade changed the title Harden GitHub Actions workflows based on zizmor audit Dev to main - Harden GitHub Actions workflows: AppSec Findings Jun 30, 2026
@sankettangade
sankettangade deleted the workflow-hardening-to-main branch July 6, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Release Not Needed Add this label if a PR does not need to be released.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants