Skip to content

[StepSecurity] Apply security best practices#118

Open
stepsecurity-app[bot] wants to merge 1 commit intomainfrom
chore/GHA-052040-stepsecurity-remediation
Open

[StepSecurity] Apply security best practices#118
stepsecurity-app[bot] wants to merge 1 commit intomainfrom
chore/GHA-052040-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

Secure Dockerfiles

Pin image tags to digests in Dockerfiles. With the Docker v2 API release, it became possible to use digests in place of tags when pulling images or to use them in FROM lines in Dockerfiles.

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>
Copy link
Contributor

@jdolitsky jdolitsky left a comment

Choose a reason for hiding this comment

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

maybe we hold on this until we have digestabot setup

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

Comments