Update actions/cache action to v6 - #5656
Conversation
📝 WalkthroughWalkthroughTwo GitHub Actions configuration files are updated to reference ChangesCache Action Version Bump
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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/agents-auto-pilot.yml:
- Line 225: The change to the actions/cache version in the agents-auto-pilot.yml
file should not be made directly in this consumer repository. This file is part
of a synced workflow pattern that is managed from the source repository
stranske/Workflows. Revert the change to the actions/cache action version in
this file and instead make the same update in the stranske/Workflows repository.
This ensures the change propagates correctly through the sync mechanism and
prevents the sync process from overwriting your changes.
🪄 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: ASSERTIVE
Plan: Pro Plus
Run ID: b0fba914-a22e-45da-840b-2def3ef6aa20
📒 Files selected for processing (2)
.github/actions/artifact-cache/action.yml.github/workflows/agents-auto-pilot.yml
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
stranske/Workflows(auto-detected)stranske/Template(auto-detected)
📜 Review details
⏰ Context from checks skipped due to timeout. (1)
- GitHub Check: Config Coverage Check
🧰 Additional context used
📓 Path-based instructions (4)
{pyproject.toml,.github/workflows/**/*.{yml,yaml}}
📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Check both
pyproject.toml([tool.coverage.report] fail_under) AND workflow files forcoverage-minsettings - these must match or the lower one wins
Files:
.github/workflows/agents-auto-pilot.yml
.github/workflows/**/*.{yml,yaml}
📄 CodeRabbit inference engine (.github/copilot-instructions.md)
For
startup_failureGitHub Actions workflow errors with zero jobs, check for common causes: Invalid YAML syntax, top-levelpermissions:block onworkflow_callreusable workflows (conflicts with caller permissions), invalid permission scopes, or circular workflow references
Files:
.github/workflows/agents-auto-pilot.yml
.github/workflows/*.yml
📄 CodeRabbit inference engine (CLAUDE.md)
Reference reusable workflows in
.github/workflows/*.ymlfiles with@mainunless intentionally pinning to an exact commit SHA for a controlled reason
Files:
.github/workflows/agents-auto-pilot.yml
{.github/workflows/agents-*.yml,.github/workflows/autofix.yml,.github/codex/**/*}
📄 CodeRabbit inference engine (CLAUDE.md)
Synced workflows (
agents-*.yml,autofix.yml), prompts in.github/codex/, and synced scripts/docs should be fixed instranske/Workflowssource, not locally in the consumer repo
Files:
.github/workflows/agents-auto-pilot.yml
🔀 Multi-repo context stranske/Workflows, stranske/Template
Perfect! I now have enough context to provide a comprehensive analysis. Let me summarize my findings:
Linked repositories findings
stranske/Workflows [::stranske/Workflows::]
Direct consumers of actions/cache that need updating:
-
.github/actions/artifact-cache/action.yml:62— The shared composite action usesactions/cache@v5in the "Restore artifact cache" step. This is a critical dependency used by multiple workflows. -
.github/workflows/agents-auto-pilot.yml:225— Usesactions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5for the pip cache step (LLM requirements). -
Multiple other workflow files also depend on
actions/cache@v5:.github/workflows/health-42-actionlint.yml:87, 106.github/workflows/maint-52-validate-workflows.yml:27.github/workflows/reusable-10-ci-python.yml:470, 872, 1193, 1406, 1547, 1853, 1867.github/workflows/reusable-agents-verifier.yml:670, 979
-
Template copy:
./templates/consumer-repo/.github/actions/artifact-cache/action.yml:62— Usesactions/cache@v5and will need the same update. -
Version management workflow:
.github/workflows/maint-sync-action-versions.yml— This workflow automatically detects and syncs action versions (includingactions/cache) across templates. The PR's updates should be compatible with this automation.
stranske/Template [::stranske/Template::]
Corresponding locations that mirror the Workflows repo:
-
.github/actions/artifact-cache/action.yml:62— Usesactions/cache@v5in the "Restore artifact cache" step. -
.github/workflows/agents-auto-pilot.yml:225— Uses the sameactions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5for pip caching.
Synchronization Note: The Template repository mirrors the Workflows repository's configuration. After this PR is merged to Workflows, the Template repository may need similar updates to stay in sync, potentially via the maint-sync-action-versions.yml workflow.
🔇 Additional comments (1)
.github/actions/artifact-cache/action.yml (1)
62-62: LGTM!
| - name: Cache pip (LLM requirements) | ||
| if: steps.check_enabled.outputs.enabled == 'true' | ||
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | ||
| uses: actions/cache@2c8a9bd7457de244a408f35966fab2fb45fda9c8 # v6 |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🔴 Critical
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Repo remote(s):"
git remote -v | sed -n '1,4p'
echo
echo "Current repository slug (if origin is GitHub):"
origin_url="$(git remote get-url origin 2>/dev/null || true)"
echo "$origin_url"
slug="$(printf '%s' "$origin_url" | sed -E 's#(git@github.com:|https://github.com/)([^/]+/[^/.]+)(\.git)?#\2#')"
echo "parsed_slug=$slug"
echo
if [ "$slug" = "stranske/Workflows" ]; then
echo "OK: This appears to be the source repo."
else
echo "NOT SOURCE: If this is a synced consumer, move the change to stranske/Workflows."
fiRepository: stranske/Trend_Model_Project
Length of output: 550
Move this change to stranske/Workflows.
This file is part of the synced agents-*.yml workflow pattern. Per coding guidelines, synced workflows must be edited in stranske/Workflows (source repo), not in consumer repos like this one, to prevent sync overwrites.
🤖 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/agents-auto-pilot.yml at line 225, The change to the
actions/cache version in the agents-auto-pilot.yml file should not be made
directly in this consumer repository. This file is part of a synced workflow
pattern that is managed from the source repository stranske/Workflows. Revert
the change to the actions/cache action version in this file and instead make the
same update in the stranske/Workflows repository. This ensures the change
propagates correctly through the sync mechanism and prevents the sync process
from overwriting your changes.
Source: Coding guidelines
|
Closing as superseded: superseded by stranske/Workflows#2520, which updates actions/cache v6 in the Workflows source/template before Maint 68 syncs consumers. Direct consumer PRs for synced workflow files would create ownership drift; the replacement should come from the Workflows source PR and the next Maint 68 sync wave. |
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This PR contains the following updates:
v5→v6Release Notes
actions/cache (actions/cache)
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.
This PR was generated by Mend Renovate. View the repository job log.