Conversation
Contributor
There was a problem hiding this comment.
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 on lines
+29
to
+30
| - name: read environment file | ||
| run: cat .harvest.env >> "$GITHUB_ENV" |
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.