Skip to content

ci: apply StepSecurity github actions#4218

Merged
cgrinds merged 1 commit into
mainfrom
cbg-sec
Apr 1, 2026
Merged

ci: apply StepSecurity github actions#4218
cgrinds merged 1 commit into
mainfrom
cbg-sec

Conversation

@cgrinds
Copy link
Copy Markdown
Collaborator

@cgrinds cgrinds commented Apr 1, 2026

No description provided.

@cgrinds cgrinds requested a review from rahulguptajss as a code owner April 1, 2026 15:14
Copilot AI review requested due to automatic review settings April 1, 2026 15:14
@cgrinds cgrinds requested a review from Hardikl as a code owner April 1, 2026 15:14
@cla-bot cla-bot Bot added the cla-signed label Apr 1, 2026
Copy link
Copy Markdown
Contributor

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 workflows by adding StepSecurity runner hardening and pinning action references to commit SHAs to reduce supply-chain risk.

Changes:

  • Added step-security/harden-runner (egress audit mode) to multiple workflows.
  • Replaced version tags with pinned commit SHAs for key actions (e.g., checkout, upload-sarif, setup-go).
  • Swapped some third-party actions to StepSecurity-maintained equivalents (e.g., setup-uv, semantic PR title lint, delete-untagged GHCR).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/workflows/zizmor.yml Adds harden-runner and pins action SHAs for zizmor SARIF generation/upload.
.github/workflows/lint-pr.yml Adds harden-runner and switches to StepSecurity semantic PR title action (pinned).
.github/workflows/go.yml Normalizes YAML formatting, adds harden-runner, and pins checkout/setup-go SHAs.
.github/workflows/delete-untagged-images.yml Adds harden-runner and switches to StepSecurity delete-untagged GHCR action (pinned).
.github/workflows/commitlint.yml Adds harden-runner and pins checkout SHA.

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

Comment thread .github/workflows/go.yml
Comment on lines +29 to +30
- name: read environment file
run: cat .harvest.env >> "$GITHUB_ENV"
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

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

The run command escapes the quotes around $GITHUB_ENV (i.e., \"$GITHUB_ENV\"). This is unnecessary in a run: step and makes the shell command harder to read; prefer cat .harvest.env >> "$GITHUB_ENV" without the backslashes (or omit the quotes entirely if you prefer) for clarity.

Copilot uses AI. Check for mistakes.
@cgrinds cgrinds merged commit 0922c35 into main Apr 1, 2026
14 checks passed
@cgrinds cgrinds deleted the cbg-sec branch April 1, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants