Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[StepSecurity] ci: Harden GitHub Actions #254

Merged

Conversation

step-security-bot
Copy link
Contributor

@step-security-bot step-security-bot commented Oct 9, 2024

Summary

This pull request is created by StepSecurity at the request of @jquagga. Please merge the Pull Request to incorporate the requested changes. Please tag @jquagga on your message if you have any questions related to the PR.

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.

Harden runner usage

You can find link to view insights and policy recommendation in the build log

Please refer to documentation to find more details.

Feedback

For bug reports, feature requests, and general feedback; please email support@stepsecurity.io. To create such PRs, please visit https://app.stepsecurity.io/securerepo.

Signed-off-by: StepSecurity Bot bot@stepsecurity.io

Summary by Sourcery

Enhance the security of the GitHub Actions workflow by integrating StepSecurity's Harden Runner, which audits egress policies and prevents unauthorized access during CI runs.

CI:

  • Integrate StepSecurity's Harden Runner into the GitHub Actions workflow to enhance security by auditing egress policies and preventing unauthorized access.

Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
Copy link
Contributor

sourcery-ai bot commented Oct 9, 2024

Reviewer's Guide by Sourcery

This pull request introduces security enhancements to the GitHub Actions workflow by incorporating the Harden-Runner step. The changes are focused on improving the security posture of the CI/CD pipeline.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Added Harden-Runner step to the GitHub Actions workflow
  • Introduced a new step named 'Harden Runner' at the beginning of the workflow
  • Utilized the step-security/harden-runner action with a specific version (v2.10.1)
  • Configured the egress-policy parameter to 'audit'
.github/workflows/ruff.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, step-security-bot!). We assume it knows what it's doing!

@jquagga jquagga enabled auto-merge (squash) October 9, 2024 12:44
@jquagga jquagga merged commit ce58950 into jquagga:main Oct 9, 2024
4 checks passed
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