Skip to content

Harden GitHub Actions workflows#61

Merged
mraible merged 1 commit intomainfrom
feat/harden-workflows
Oct 21, 2025
Merged

Harden GitHub Actions workflows#61
mraible merged 1 commit intomainfrom
feat/harden-workflows

Conversation

@mraible
Copy link
Copy Markdown
Contributor

@mraible mraible commented Oct 21, 2025

This PR hardens GitHub Actions workflows by applying security best practices:

  • Pinned actions to commit SHAs: All GitHub Actions are now pinned to their full commit SHA instead of tags, preventing supply chain attacks
  • Added harden-runner: The step-security/harden-runner action monitors runtime behavior and network egress
  • Set minimum permissions: GITHUB_TOKEN permissions are explicitly set to minimum required (contents: read)

Security Improvements

  • Protection against compromised actions through commit SHA pinning
  • Runtime network egress monitoring and audit logging
  • Principle of least privilege for GitHub tokens
  • Compliance with GitHub security best practices

Testing

All existing CI checks should pass without modification. The hardened workflows are functionally equivalent to the originals with added security layers.

References

@mraible mraible requested a review from a team October 21, 2025 15:42
- Pin actions to full commit SHAs for supply chain security
- Add step-security/harden-runner for runtime security monitoring
- Set minimum GITHUB_TOKEN permissions
- Apply security best practices per StepSecurity recommendations
@mraible mraible force-pushed the feat/harden-workflows branch from 276baa8 to 9a35d33 Compare October 21, 2025 15:57
@mraible mraible merged commit 34b1a45 into main Oct 21, 2025
@mraible mraible deleted the feat/harden-workflows branch October 21, 2025 22:06
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.

2 participants