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

ci(GitHub): Bump step-security/harden-runner from 2.8.0 to 2.9.1 #39

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 1, 2024

Bumps step-security/harden-runner from 2.8.0 to 2.9.1.

Release notes

Sourced from step-security/harden-runner's releases.

v2.9.1

What's Changed

Release v2.9.1 by @​h0x0er and @​varunsh-coder in #440 This release includes two changes:

  1. Updated markdown displayed in the job summary by the Harden-Runner Action.
  2. Fixed a bug affecting Enterprise Tier customers where the agent attempted to upload telemetry for jobs with disable-telemetry set to true. No telemetry was uploaded as the endpoint was not in the allowed list.

Full Changelog: step-security/harden-runner@v2...v2.9.1

v2.9.0

What's Changed

Release v2.9.0 by @​h0x0er and @​varunsh-coder in step-security/harden-runner#435 This release includes:

  • Enterprise Tier - Telemetry Upload Enhancement: For the enterprise tier, this change helps overcome size constraints, allowing for more reliable telemetry uploads from the Harden-Runner agent to the StepSecurity backend API. No configuration change is needed to enable this.
  • Harden-Runner Agent Authentication: The Harden-Runner agent now uses a per-job key to authenticate to the StepSecurity backend API to submit telemetry. This change prevents the submission of telemetry data anonymously for a given job, improving the integrity of the data collection process. No configuration change is needed to enable this.
  • README Update: A Table of Contents has been added to the README file to improve navigation. This makes it easier for users to find the information they need quickly.
  • Dependency Update: Updated the braces npm package dependency to a non-vulnerable version. The vulnerability in braces did not affect the Harden Runner Action

Full Changelog: step-security/harden-runner@v2...v2.9.0

v2.8.1

What's Changed

  • Bug fix: Update isGitHubHosted implementation by @​varunsh-coder in step-security/harden-runner#425 The previous implementation incorrectly identified large GitHub-hosted runners as self-hosted runners. As a result, harden-runner was not executing on these large GitHub-hosted runners.

Full Changelog: step-security/harden-runner@v2...v2.8.1

Commits
  • 5c7944e Merge pull request #440 from step-security/rc-11
  • c79be45 Merge branch 'main' into rc-11
  • deb3383 Merge pull request #446 from h0x0er/log-step
  • 23c8215 update dist
  • 727d06a logging step
  • f0db2aa Merge pull request #441 from step-security/dependabot/github_actions/github/c...
  • 1938ffc Merge branch 'main' into dependabot/github_actions/github/codeql-action-3.25.13
  • 8e7dd2c Merge pull request #442 from step-security/dependabot/github_actions/step-sec...
  • f2823ee Bump step-security/publish-unit-test-result-action from 1 to 2
  • 5f95e05 Bump github/codeql-action from 2.13.4 to 3.25.13
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by CodeRabbit

  • New Features

    • Upgraded the harden-runner action across multiple workflows to version 2.9.1, enhancing security, performance, and bug fixes.
  • Chores

    • Updated workflow configurations to ensure the latest improvements and security features are utilized in the CI/CD pipeline.

Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.8.0 to 2.9.1.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](step-security/harden-runner@f086349...5c7944e)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from amal as a code owner September 1, 2024 17:46
@dependabot dependabot bot added dependencies Dependencies update request gh-action GitHub actions-releated labels Sep 1, 2024
Copy link

coderabbitai bot commented Sep 1, 2024

Walkthrough

Walkthrough

The changes involve updating the harden-runner action version from v2.8.0 to v2.9.1 across multiple GitHub Actions workflow files. This update is consistent throughout the configurations, maintaining existing parameters while ensuring the workflows utilize the latest version of the action.

Changes

Files Change Summary
.github/workflows/build.yml, .github/workflows/gradle-wrapper-validation.yml, .github/workflows/pr-baseline.yml, .github/workflows/pr-check.yml, .github/workflows/pr-clean-cache.yml, .github/workflows/pr-fast-forward.yml, .github/workflows/release.yml Upgraded harden-runner action from v2.8.0 to v2.9.1, retaining existing parameters and workflow structure.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant GitHub Actions
    participant Harden-Runner

    User->>GitHub Actions: Trigger Workflow
    GitHub Actions->>Harden-Runner: Execute with v2.9.1
    Harden-Runner-->>GitHub Actions: Return Results
    GitHub Actions-->>User: Workflow Completed
Loading

Poem

🐇 In the meadow where bunnies play,
A new runner hops in today!
With version updated, oh what a sight,
Our workflows now dance with delight!
Hooray for the changes, let’s cheer and prance,
For a safer tomorrow, let’s take a chance! 🌼


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

github-actions bot commented Sep 1, 2024

🔄 Baseline update started...

Copy link

github-actions bot commented Sep 1, 2024

❌ Baseline update failed!

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE

Commits

Files that changed from the base of the PR and between 61fa441 and 36a271b.

Files selected for processing (7)
  • .github/workflows/build.yml (1 hunks)
  • .github/workflows/gradle-wrapper-validation.yml (1 hunks)
  • .github/workflows/pr-baseline.yml (1 hunks)
  • .github/workflows/pr-check.yml (1 hunks)
  • .github/workflows/pr-clean-cache.yml (1 hunks)
  • .github/workflows/pr-fast-forward.yml (1 hunks)
  • .github/workflows/release.yml (2 hunks)
Additional comments not posted (7)
.github/workflows/pr-check.yml (1)

23-23: LGTM! The harden-runner action has been updated to the latest version.

The version update from v2.8.0 to v2.9.1 is consistent with the PR objectives and includes several changes and bug fixes as outlined in the release notes. The action parameters remain unchanged, ensuring that the existing functionality is preserved. Updating to the latest version is a good practice to leverage the latest features, enhancements, and bug fixes.

.github/workflows/pr-clean-cache.yml (1)

13-13: LGTM!

The code changes are approved for the following reasons:

  • The harden-runner action version has been updated from v2.8.0 to v2.9.1, which is consistent with the PR objective and the AI-generated summary.
  • The action parameters remain unchanged, indicating that the core functionality and configuration of the runner's security settings are preserved.
  • The update may enhance the overall security posture of the CI/CD pipeline by leveraging the latest updates from the action's maintainers.
.github/workflows/pr-fast-forward.yml (1)

29-29: LGTM!

The code changes are approved. The version update of the step-security/harden-runner action from v2.8.0 to v2.9.1 is consistent with the PR summary and the AI-generated summary. The update is likely to improve the security and reliability of the workflow without introducing any breaking changes, as the parameters passed to the action remain the same.

.github/workflows/release.yml (2)

29-29: LGTM!

The code changes are approved. The update to the harden-runner action version is consistent with the PR objective and the AI-generated summary.


69-69: LGTM!

The code changes are approved. The update to the harden-runner action version is consistent with the PR objective and the AI-generated summary.

.github/workflows/pr-baseline.yml (1)

28-28: LGTM! Verify compatibility and impact of the version update.

The update to the step-security/harden-runner action from version v2.8.0 to v2.9.1 looks good. It aligns with the PR objective and is likely to improve the security and reliability of the workflow.

However, please ensure that you:

  1. Review the release notes and changelog for version v2.9.1 to understand the specific changes and bug fixes included in this update.
  2. Verify that the updated version is compatible with your workflow and doesn't introduce any breaking changes.
  3. Test the workflow with the updated version to ensure it functions as expected and doesn't negatively impact your CI/CD pipeline.

Let me know if you have any concerns or need further assistance!

.github/workflows/build.yml (1)

74-74: LGTM! Ensure the version update is consistently applied across all workflow files.

The code changes are approved. The version update to [email protected] is crucial for maintaining the security posture of the CI/CD pipeline by incorporating the latest improvements and fixes.

Verify if the version update has been consistently applied across all workflow files by running the following script:

Verification successful

Version update consistently applied across all workflow files.

The version update to [email protected] has been successfully and consistently applied across all relevant workflow files, ensuring the latest improvements and security enhancements are utilized throughout the CI/CD pipeline.

  • Files updated with the new version:
    • .github/workflows/release.yml
    • .github/workflows/pr-fast-forward.yml
    • .github/workflows/pr-clean-cache.yml
    • .github/workflows/pr-check.yml
    • .github/workflows/pr-baseline.yml
    • .github/workflows/gradle-wrapper-validation.yml
    • .github/workflows/build.yml
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify if the version update to [email protected] is consistently applied across all workflow files.

# Test: Search for occurrences of the old and new versions in workflow files.
# Expect: Only occurrences of the new version (v2.9.1).
rg --type yaml $'step-security/harden-runner@(f086349bfa2bd1361f7909c78558e816508cdc10|5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde)' .github/workflows/

Length of output: 1161

@@ -26,7 +26,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
Copy link

Choose a reason for hiding this comment

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

LGTM! The version update is consistent with the PR objectives.

The code changes are approved. The update to the harden-runner action version is consistent with the PR objectives and the AI-generated summary.

Using the commit SHA 5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde instead of a version tag is a good practice for security and reproducibility. It ensures that the workflow always uses the exact version of the action, even if the version tag is updated or deleted.

Consider adding a comment to document the key changes in the new version, such as:

  uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
+ # v2.9.1 changes:
+ # - Update markdown displayed in job summary
+ # - Fix bug affecting Enterprise Tier customers

This will help future maintainers understand the reasons for the update and the benefits it brings.

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
# v2.9.1 changes:
# - Update markdown displayed in job summary
# - Fix bug affecting Enterprise Tier customers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Dependencies update request gh-action GitHub actions-releated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants