Skip to content

[StepSecurity] Apply security best practices#25

Merged
eslerm merged 1 commit into
mainfrom
chore/GHA-130517-stepsecurity-remediation
May 13, 2025
Merged

[StepSecurity] Apply security best practices#25
eslerm merged 1 commit into
mainfrom
chore/GHA-130517-stepsecurity-remediation

Conversation

@stepsecurity-app

Copy link
Copy Markdown
Contributor

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.

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>
@eslerm

eslerm commented May 13, 2025

Copy link
Copy Markdown

@eslerm eslerm merged commit 42d251a into main May 13, 2025
6 checks passed
@eslerm eslerm deleted the chore/GHA-130517-stepsecurity-remediation branch May 13, 2025 05:48
@eslerm

eslerm commented May 16, 2025

Copy link
Copy Markdown

chainguard-dev/malcontent#927 (comment)

I believe the scorecard Workflow only allows for two third-party Actions with harden-runner being one of them, so that should be fine to add in a separate PR.

cc @egibs

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