Skip to content

[StepSecurity] Apply security best practices#412

Merged
cpanato merged 1 commit intomainfrom
chore/GHA-301843-stepsecurity-remediation
Jun 4, 2025
Merged

[StepSecurity] Apply security best practices#412
cpanato merged 1 commit intomainfrom
chore/GHA-301843-stepsecurity-remediation

Conversation

@stepsecurity-app
Copy link
Contributor

This PR implements go/ssdlc-2. Please raise issues to ProdSec's on-call rotation.

Ref: https://github.com/chainguard-dev/prodsec/issues/138

Summary

This pull request has been generated by StepSecurity as part of your enterprise subscription to ensure compliance with recommended security best practices. Please review and merge the pull request to apply these security enhancements.

At a high level, this PR:

  • Adds the harden-runner Action if not already present
  • Pins Actions to a digest rather than mutable tags
  • Restricts GitHub token permissions to be as minimal as possible

Security Fixes

Harden Runner

Harden-Runner is an open-source security agent for the GitHub-hosted runner to prevent software supply chain attacks. It prevents exfiltration of credentials, detects tampering of source code during build, and enables running jobs without sudo access.

Pinned Dependencies

Pinning GitHub Actions to specific versions or commit SHAs ensures that your workflows remain consistent and secure.
Unpinned actions can lead to unexpected changes or vulnerabilities caused by upstream updates.

Feedback

For bug reports, feature requests, and general feedback; please create an issue in step-security/secure-repo or contact us via our website.

Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
@cpanato cpanato force-pushed the chore/GHA-301843-stepsecurity-remediation branch from dc2f156 to c4c6e30 Compare June 4, 2025 15:57
@cpanato cpanato merged commit 2d96833 into main Jun 4, 2025
16 checks passed
@cpanato cpanato deleted the chore/GHA-301843-stepsecurity-remediation branch June 4, 2025 15:59
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