Skip to content

build(deps): bump actions/cache from 5 to 6#748

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/github_actions/actions/cache-6
Open

build(deps): bump actions/cache from 5 to 6#748
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/github_actions/actions/cache-6

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 23, 2026

Copy link
Copy Markdown
Contributor

Bumps actions/cache from 5 to 6.

Release notes

Sourced from actions/cache's releases.

v6.0.0

What's Changed

Full Changelog: actions/cache@v5...v6.0.0

v5.0.5

What's Changed

Full Changelog: actions/cache@v5...v5.0.5

v5.0.4

What's Changed

New Contributors

Full Changelog: actions/cache@v5...v5.0.4

v5.0.3

What's Changed

Full Changelog: actions/cache@v5...v5.0.3

v.5.0.2

v5.0.2

What's Changed

When creating cache entries, 429s returned from the cache service will not be retried.

v5.0.1

[!IMPORTANT] actions/cache@v5 runs on the Node.js 24 runtime and requires a minimum Actions Runner version of 2.327.1.

... (truncated)

Changelog

Sourced from actions/cache's changelog.

Releases

How to prepare a release

[!NOTE]
Relevant for maintainers with write access only.

  1. Switch to a new branch from main.
  2. Run npm test to ensure all tests are passing.
  3. Update the version in https://github.com/actions/cache/blob/main/package.json.
  4. Run npm run build to update the compiled files.
  5. Update this https://github.com/actions/cache/blob/main/RELEASES.md with the new version and changes in the ## Changelog section.
  6. Run licensed cache to update the license report.
  7. Run licensed status and resolve any warnings by updating the https://github.com/actions/cache/blob/main/.licensed.yml file with the exceptions.
  8. Commit your changes and push your branch upstream.
  9. Open a pull request against main and get it reviewed and merged.
  10. Draft a new release https://github.com/actions/cache/releases use the same version number used in package.json
    1. Create a new tag with the version number.
    2. Auto generate release notes and update them to match the changes you made in RELEASES.md.
    3. Toggle the set as the latest release option.
    4. Publish the release.
  11. Navigate to https://github.com/actions/cache/actions/workflows/release-new-action-version.yml
    1. There should be a workflow run queued with the same version number.
    2. Approve the run to publish the new version and update the major tags for this action.

Changelog

6.0.0

  • Updated @actions/cache to ^6.0.1, @actions/core to ^3.0.1, @actions/exec to ^3.0.0, @actions/io to ^3.0.2
  • Migrated to ESM module system
  • Upgraded Jest to v30 and test infrastructure to be ESM compatible

5.0.4

  • Bump minimatch to v3.1.5 (fixes ReDoS via globstar patterns)
  • Bump undici to v6.24.1 (WebSocket decompression bomb protection, header validation fixes)
  • Bump fast-xml-parser to v5.5.6

5.0.3

5.0.2

  • Bump @actions/cache to v5.0.3 #1692

5.0.1

... (truncated)

Commits

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

  • Chores
    • Updated GitHub Actions cache dependency from version 5 to version 6 in CI/CD workflows for automated operator deployment and component publishing pipelines.

Bumps [actions/cache](https://github.com/actions/cache) from 5 to 6.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@v5...v6)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Jun 23, 2026
@openshift-ci openshift-ci Bot requested review from MatousJobanek and rsoaresd June 23, 2026 15:02
@openshift-ci

openshift-ci Bot commented Jun 23, 2026

Copy link
Copy Markdown

Hi @dependabot[bot]. Thanks for your PR.

I'm waiting for a codeready-toolchain member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown

Walkthrough

Two GitHub Actions workflow files update the actions/cache dependency caching step from v5 to v6. No other workflow steps, configuration, or logic are changed.

Changes

Cache action version bump

Layer / File(s) Summary
Update actions/cache to v6 in both workflows
.github/workflows/operator-cd.yml, .github/workflows/publish-components-for-e2e-tests.yml
Both workflow files update their Go module dependency caching step from actions/cache@v5 to actions/cache@v6.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested labels

ci

Suggested reviewers

  • metlos
  • xcoulon
  • MatousJobanek
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: bumping the actions/cache GitHub Action from version 5 to version 6 across the affected workflow files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dependabot/github_actions/actions/cache-6

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot added the ci Add or update CI/CD configuration label Jun 23, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/publish-components-for-e2e-tests.yml (1)

59-64: 🔒 Security & Privacy | 🟠 Major

Use actions/cache/restore@v6 to prevent cache poisoning in untrusted PR runs.

This workflow runs on pull_request_target and issue_comment events, checking out untrusted PR code. Using the full actions/cache@v6 action (which automatically saves cache on success) allows attackers to poison the Go module cache by modifying ~/go/pkg/mod and passing the build. Replace with actions/cache/restore@v6 and move explicit cache save to a separate, trusted-only workflow or step.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/publish-components-for-e2e-tests.yml around lines 59 - 64,
The workflow is vulnerable to cache poisoning because it uses the full
`actions/cache@v6` action which automatically saves the cache after successful
execution. Since this workflow runs on `pull_request_target` with untrusted PR
code, replace `actions/cache@v6` with `actions/cache/restore@v6` to only restore
the cached Go modules without saving. If explicit cache saving is needed, move
that operation to a separate trusted-only workflow or step that runs only on
trusted events (like after merge to main branch).
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/publish-components-for-e2e-tests.yml:
- Line 59: The `actions/cache@v6` reference on line 59 uses a mutable version
tag instead of a full commit SHA, which poses a supply-chain security risk.
Replace the tag reference with the complete commit SHA for the v6 release of
actions/cache and add the version tag as a comment for readability, following
the format `actions/cache@<full-commit-sha> # v6` to make the version still
visible while ensuring immutability.

---

Outside diff comments:
In @.github/workflows/publish-components-for-e2e-tests.yml:
- Around line 59-64: The workflow is vulnerable to cache poisoning because it
uses the full `actions/cache@v6` action which automatically saves the cache
after successful execution. Since this workflow runs on `pull_request_target`
with untrusted PR code, replace `actions/cache@v6` with
`actions/cache/restore@v6` to only restore the cached Go modules without saving.
If explicit cache saving is needed, move that operation to a separate
trusted-only workflow or step that runs only on trusted events (like after merge
to main branch).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: 3abbb066-fb09-41ba-9799-b1b58fd22648

📥 Commits

Reviewing files that changed from the base of the PR and between 96b779e and 48cdc22.

📒 Files selected for processing (2)
  • .github/workflows/operator-cd.yml
  • .github/workflows/publish-components-for-e2e-tests.yml
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • codeready-toolchain/api (manual)
  • codeready-toolchain/toolchain-common (manual)
  • codeready-toolchain/host-operator (manual)
  • codeready-toolchain/toolchain-e2e (manual)
📜 Review details
⏰ Context from checks skipped due to timeout. (1)
  • GitHub Check: Build & push operator bundles & dashboard image for e2e tests
🧰 Additional context used
🪛 zizmor (1.26.1)
.github/workflows/publish-components-for-e2e-tests.yml

[error] 59-59: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)

.github/workflows/operator-cd.yml

[error] 29-29: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)


[error] 29-29: runtime artifacts potentially vulnerable to a cache poisoning attack (cache-poisoning): enables caching by default

(cache-poisoning)

🔀 Multi-repo context codeready-toolchain/host-operator, codeready-toolchain/toolchain-e2e

Linked repositories findings

Based on my cross-repository exploration, I found that the actions/cache@v5 to v6 upgrade affects two other repositories that consume this action:

codeready-toolchain/host-operator

Uses actions/cache in two workflows:

  1. operator-cd.yml (line 29) [::codeready-toolchain/host-operator::]

    - name: Cache dependencies
      uses: actions/cache@v5
      with:
        path: ~/go/pkg/mod
        key: ${{ runner.os }}-go-${{ hashFiles ('**/go.sum') }}
        restore-keys: |
          ${{ runner.os }}-go-
  2. publish-components-for-e2e-tests.yml (line 59) [::codeready-toolchain/host-operator::]

    - name: Cache dependencies
      uses: actions/cache@v5
      with:
        path: ~/go/pkg/mod
        key: ${{ runner.os }}-go-${{ hashFiles ('**/go.sum') }}
        restore-keys: |
          ${{ runner.os }}-go-

codeready-toolchain/toolchain-e2e

Uses actions/cache in one workflow:

  1. publish-components-for-e2e-tests.yml (line 61) [::codeready-toolchain/toolchain-e2e::]
    - name: Cache dependencies
      uses: actions/cache@v5
      with:
        path: ~/go/pkg/mod
        key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
        restore-keys: |
          ${{ runner.os }}-go-

Compatibility Assessment

No breaking changes detected:

  • The v6 upgrade is primarily an internal implementation change (ESM migration and dependency updates)
  • The public API for the actions/cache action (path, key, restore-keys inputs) remains backward compatible
  • All identified usage patterns in both host-operator and toolchain-e2e are standard and compatible with v6
  • The cache configurations are identical across all workflows and pose no compatibility concerns

Additional findings

  • codeready-toolchain/api and codeready-toolchain/toolchain-common do not use actions/cache; they use alternative caching mechanisms in their build configuration
  • No custom cache logic or dependencies on specific v5 behavior were identified in any repository
🔇 Additional comments (1)
.github/workflows/operator-cd.yml (1)

29-29: 🔒 Security & Privacy

Action reference uses tag-based versioning, consistent with repository standards.

Line 29 uses actions/cache@v6, which follows the established pattern throughout member-operator and related repositories (host-operator, toolchain-e2e all use tag-based refs). SHA pinning is only applied in this codebase as a workaround for specific issues (e.g., octokit/request-action), not as an enforced policy. No documented policy mandating action SHA pinning exists in the repository.

			> Likely an incorrect or invalid review comment.

Comment thread .github/workflows/publish-components-for-e2e-tests.yml

@MatousJobanek MatousJobanek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/ok-to-test
/lgtm

@openshift-ci

openshift-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dependabot[bot], MatousJobanek

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved ci Add or update CI/CD configuration dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code lgtm ok-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant