chore(deps): update actions/cache action to v6 - #344
Conversation
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
WalkthroughThe GitHub Actions test workflow updates cache steps in the install, test-component, and test-storybook jobs from ChangesCI cache action upgrade
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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/test.yml:
- Line 22: The workflow still uses tag-pinned actions/cache references, which
violates the unpinned-uses policy; update each actions/cache usage in the test
workflow to the intended release commit SHA instead of `@v6`. Make sure all four
occurrences are changed consistently so the cache step is pinned securely.
🪄 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: 579abfa5-8271-4e1f-a4a2-f9cebf4dea2f
📒 Files selected for processing (1)
.github/workflows/test.yml
| cache: 'npm' | ||
| # cache node modules for all jobs to use | ||
| - uses: actions/cache@v5 | ||
| - uses: actions/cache@v6 |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟠 Major
🧩 Analysis chain
🏁 Script executed:
sed -n '1,140p' .github/workflows/test.ymlRepository: RedHatInsights/learning-resources
Length of output: 3760
🏁 Script executed:
sed -n '1,140p' .github/workflows/test.ymlRepository: RedHatInsights/learning-resources
Length of output: 3760
Pin actions/cache to a commit SHA.
All four uses: actions/cache@v6 entries are still tag-pinned, so the workflow remains vulnerable to tag retargeting and still violates the unpinned-uses policy. Replace them with the intended release commit SHA.
🧰 Tools
🪛 zizmor (1.26.1)
[error] 22-22: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 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/test.yml at line 22, The workflow still uses tag-pinned
actions/cache references, which violates the unpinned-uses policy; update each
actions/cache usage in the test workflow to the intended release commit SHA
instead of `@v6`. Make sure all four occurrences are changed consistently so the
cache step is pinned securely.
Source: Linters/SAST tools
This PR contains the following updates:
v5→v6Release Notes
actions/cache (actions/cache)
v6.1.0Compare Source
What's Changed
Full Changelog: actions/cache@v6...v6.1.0
v6.0.0Compare Source
What's Changed
Full Changelog: actions/cache@v5...v6.0.0
v6Compare Source
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
To execute skipped test pipelines write comment
/ok-to-test.Documentation
Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.