Skip to content

ci: bump canonical workflow checkout templates - #1435

Closed
serbrech wants to merge 1 commit into
github:devfrom
serbrech:serbrech-bump-checkout-action
Closed

serbrech wants to merge 1 commit into
github:devfrom
serbrech:serbrech-bump-checkout-action

Conversation

@serbrech

@serbrech serbrech commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Bumps the canonical .squad-templates/workflows checkout steps from actions/checkout@v4 to actions/checkout@v7.
  • Runs node scripts/sync-templates.mjs --sync in a separate commit so the root, CLI, and SDK template mirrors are refreshed from the canonical source.
  • Adds a changeset for the template workflow update.

History check

  • eb57b87d bumped this repository's live .github/workflows from checkout v4 to v6.
  • 3cfd2c5a bumped the live .github/workflows from checkout v6 to v7.
  • The Squad template workflow copies remained on checkout v4 in those commits, so this was not a downgrade from v6 inside the shipped templates; the target repository had upgraded independently.

Checkout v4 → v7 changes

Version What changed Practical impact
v5 Runtime moved from Node 20 to Node 24. Requires Actions Runner v2.327.1+. GitHub-hosted runners are fine; old self-hosted/GHES runners may need updates.
v6 persist-credentials stores credentials under $RUNNER_TEMP instead of directly in .git/config. More secure credential handling. Normal git fetch/push still works. Docker container actions doing authenticated git operations need runner v2.329.0+.
v6.0.1–v6.0.3 Worktree credential support, tag handling fixes, SHA-256 repo fixes. Mostly compatibility/bug fixes.
v7 Blocks checking out fork PR code by default under pull_request_target and workflow_run; adds allow-unsafe-pr-checkout: true opt-in. Also migrated internals to ESM and updated dependencies. Biggest behavior change. Workflows that intentionally checkout fork PR heads from privileged triggers may fail until explicitly opted in. This is a security hardening against “pwn request” patterns.

For Squad’s workflow templates, the bump is generally safe unless any template uses pull_request_target or workflow_run and checks out untrusted fork PR code. The upside is newer runner/runtime support, safer credential persistence, dependency/security fixes, and v7’s fork-checkout protection.

Validation

  • node scripts/sync-templates.mjs --sync
  • npm run build --ignore-scripts

Notes

  • The sync commit includes generated mirror drift outside workflow YAML, including workflow-wiring Markdown mirrors and .github/agents/squad.agent.md, because the sync script copies all canonical .squad-templates files.

Copilot AI review requested due to automatic review settings July 2, 2026 03:03
@github-actions

github-actions Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

🛫 PR Readiness Check

ℹ️ This comment updates on each push. Last checked: commit bb822d5

PR Scope: 🔧 Infrastructure

⚠️ 2 item(s) to address before review

Status Check Details
✅ Single commit 1 commit — clean history
✅ Not in draft Ready for review
✅ Branch up to date Up to date with dev
❌ Copilot review No Copilot review yet — it may still be processing
✅ Changeset present Changeset file found
✅ Scope clean No .squad/ or docs/proposals/ files
✅ No merge conflicts No merge conflicts
✅ Copilot threads resolved All 1 Copilot thread(s) resolved
❌ CI passing 1 check(s) failing: test

Files Changed (55 files, +1696 −1689)

File +/−
.changeset/bump-checkout-template-workflows.md +6 −0
.github/agents/squad.agent.md +1 −0
.squad-templates/workflows/squad-ci.yml +1 −1
.squad-templates/workflows/squad-docs.yml +1 −1
.squad-templates/workflows/squad-heartbeat.yml +1 −1
.squad-templates/workflows/squad-insider-release.yml +1 −1
.squad-templates/workflows/squad-issue-assign.yml +1 −1
.squad-templates/workflows/squad-label-enforce.yml +1 −1
.squad-templates/workflows/squad-preview.yml +1 −1
.squad-templates/workflows/squad-promote.yml +2 −2
.squad-templates/workflows/squad-release.yml +1 −1
.squad-templates/workflows/squad-triage.yml +1 −1
.squad-templates/workflows/sync-squad-labels.yml +1 −1
packages/squad-cli/templates/workflow-wiring-appendix-a-code-reviewer.md +131 −131
packages/squad-cli/templates/workflow-wiring-appendix-b-documenter.md +140 −140
packages/squad-cli/templates/workflow-wiring-guide.md +276 −276
packages/squad-cli/templates/workflows/squad-ci.yml +1 −1
packages/squad-cli/templates/workflows/squad-docs.yml +1 −1
packages/squad-cli/templates/workflows/squad-heartbeat.yml +1 −1
packages/squad-cli/templates/workflows/squad-insider-release.yml +1 −1
packages/squad-cli/templates/workflows/squad-issue-assign.yml +1 −1
packages/squad-cli/templates/workflows/squad-label-enforce.yml +1 −1
packages/squad-cli/templates/workflows/squad-preview.yml +1 −1
packages/squad-cli/templates/workflows/squad-promote.yml +2 −2
packages/squad-cli/templates/workflows/squad-release.yml +1 −1
packages/squad-cli/templates/workflows/squad-triage.yml +1 −1
packages/squad-cli/templates/workflows/sync-squad-labels.yml +1 −1
packages/squad-sdk/templates/workflow-wiring-appendix-a-code-reviewer.md +131 −131
packages/squad-sdk/templates/workflow-wiring-appendix-b-documenter.md +140 −140
packages/squad-sdk/templates/workflow-wiring-guide.md +276 −276
packages/squad-sdk/templates/workflows/squad-ci.yml +1 −1
packages/squad-sdk/templates/workflows/squad-docs.yml +1 −1
packages/squad-sdk/templates/workflows/squad-heartbeat.yml +1 −1
packages/squad-sdk/templates/workflows/squad-insider-release.yml +1 −1
packages/squad-sdk/templates/workflows/squad-issue-assign.yml +1 −1
packages/squad-sdk/templates/workflows/squad-label-enforce.yml +1 −1
packages/squad-sdk/templates/workflows/squad-preview.yml +1 −1
packages/squad-sdk/templates/workflows/squad-promote.yml +2 −2
packages/squad-sdk/templates/workflows/squad-release.yml +1 −1
packages/squad-sdk/templates/workflows/squad-triage.yml +1 −1
packages/squad-sdk/templates/workflows/sync-squad-labels.yml +1 −1
templates/workflow-wiring-appendix-a-code-reviewer.md +131 −131
templates/workflow-wiring-appendix-b-documenter.md +140 −140
templates/workflow-wiring-guide.md +276 −276
templates/workflows/squad-ci.yml +1 −1
templates/workflows/squad-docs.yml +1 −1
templates/workflows/squad-heartbeat.yml +1 −1
templates/workflows/squad-insider-release.yml +1 −1
templates/workflows/squad-issue-assign.yml +1 −1
templates/workflows/squad-label-enforce.yml +1 −1
... +5 more files

Total: +1696 −1689


This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.

@github-actions

github-actions Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

🔴 Impact Analysis — PR #1435

Risk tier: 🔴 CRITICAL

📊 Summary

Metric Count
Files changed 55
Files added 1
Files modified 54
Files deleted 0
Modules touched 5

🎯 Risk Factors

  • 55 files changed (>50 → CRITICAL)
  • 5 modules touched (5-8 → HIGH)

📦 Modules Affected

ci-workflows (1 file)
  • .github/agents/squad.agent.md
root (15 files)
  • .changeset/bump-checkout-template-workflows.md
  • templates/workflow-wiring-appendix-a-code-reviewer.md
  • templates/workflow-wiring-appendix-b-documenter.md
  • templates/workflow-wiring-guide.md
  • templates/workflows/squad-ci.yml
  • templates/workflows/squad-docs.yml
  • templates/workflows/squad-heartbeat.yml
  • templates/workflows/squad-insider-release.yml
  • templates/workflows/squad-issue-assign.yml
  • templates/workflows/squad-label-enforce.yml
  • templates/workflows/squad-preview.yml
  • templates/workflows/squad-promote.yml
  • templates/workflows/squad-release.yml
  • templates/workflows/squad-triage.yml
  • templates/workflows/sync-squad-labels.yml
squad-cli (14 files)
  • packages/squad-cli/templates/workflow-wiring-appendix-a-code-reviewer.md
  • packages/squad-cli/templates/workflow-wiring-appendix-b-documenter.md
  • packages/squad-cli/templates/workflow-wiring-guide.md
  • packages/squad-cli/templates/workflows/squad-ci.yml
  • packages/squad-cli/templates/workflows/squad-docs.yml
  • packages/squad-cli/templates/workflows/squad-heartbeat.yml
  • packages/squad-cli/templates/workflows/squad-insider-release.yml
  • packages/squad-cli/templates/workflows/squad-issue-assign.yml
  • packages/squad-cli/templates/workflows/squad-label-enforce.yml
  • packages/squad-cli/templates/workflows/squad-preview.yml
  • packages/squad-cli/templates/workflows/squad-promote.yml
  • packages/squad-cli/templates/workflows/squad-release.yml
  • packages/squad-cli/templates/workflows/squad-triage.yml
  • packages/squad-cli/templates/workflows/sync-squad-labels.yml
squad-sdk (14 files)
  • packages/squad-sdk/templates/workflow-wiring-appendix-a-code-reviewer.md
  • packages/squad-sdk/templates/workflow-wiring-appendix-b-documenter.md
  • packages/squad-sdk/templates/workflow-wiring-guide.md
  • packages/squad-sdk/templates/workflows/squad-ci.yml
  • packages/squad-sdk/templates/workflows/squad-docs.yml
  • packages/squad-sdk/templates/workflows/squad-heartbeat.yml
  • packages/squad-sdk/templates/workflows/squad-insider-release.yml
  • packages/squad-sdk/templates/workflows/squad-issue-assign.yml
  • packages/squad-sdk/templates/workflows/squad-label-enforce.yml
  • packages/squad-sdk/templates/workflows/squad-preview.yml
  • packages/squad-sdk/templates/workflows/squad-promote.yml
  • packages/squad-sdk/templates/workflows/squad-release.yml
  • packages/squad-sdk/templates/workflows/squad-triage.yml
  • packages/squad-sdk/templates/workflows/sync-squad-labels.yml
templates (11 files)
  • .squad-templates/workflows/squad-ci.yml
  • .squad-templates/workflows/squad-docs.yml
  • .squad-templates/workflows/squad-heartbeat.yml
  • .squad-templates/workflows/squad-insider-release.yml
  • .squad-templates/workflows/squad-issue-assign.yml
  • .squad-templates/workflows/squad-label-enforce.yml
  • .squad-templates/workflows/squad-preview.yml
  • .squad-templates/workflows/squad-promote.yml
  • .squad-templates/workflows/squad-release.yml
  • .squad-templates/workflows/squad-triage.yml
  • .squad-templates/workflows/sync-squad-labels.yml

This report is generated automatically for every PR. See #733 for details.

@github-actions

github-actions Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

🏗️ Architectural Review

⚠️ Architectural review: 1 warning(s).

Severity Category Finding Files
🟡 warning sweeping-refactor This PR touches 55 files (55 modified/added, 0 deleted). Large PRs are harder to review — consider splitting if possible. —

Automated architectural review — informational only.

Copilot AI 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.

Pull request overview

Updates the canonical Squad GitHub Actions workflow templates under .squad-templates/workflows/ to use a newer actions/checkout version, and adds a Changesets entry to ensure the template change is release-noted.

Changes:

  • Bump actions/checkout from @v4 → @v7 across canonical workflow templates in .squad-templates/workflows/.
  • Add a changeset to publish the workflow template bump as a patch for both CLI and SDK.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.squad-templates/workflows/sync-squad-labels.yml Bump actions/checkout to @v7.
.squad-templates/workflows/squad-triage.yml Bump actions/checkout to @v7.
.squad-templates/workflows/squad-release.yml Bump actions/checkout to @v7 (with full history checkout retained).
.squad-templates/workflows/squad-promote.yml Bump actions/checkout to @v7 in both jobs.
.squad-templates/workflows/squad-preview.yml Bump actions/checkout to @v7.
.squad-templates/workflows/squad-label-enforce.yml Bump actions/checkout to @v7.
.squad-templates/workflows/squad-issue-assign.yml Bump actions/checkout to @v7.
.squad-templates/workflows/squad-insider-release.yml Bump actions/checkout to @v7 (with full history checkout retained).
.squad-templates/workflows/squad-heartbeat.yml Bump actions/checkout to @v7.
.squad-templates/workflows/squad-docs.yml Bump actions/checkout to @v7.
.squad-templates/workflows/squad-ci.yml Bump actions/checkout to @v7.
.changeset/bump-checkout-template-workflows.md Adds patch changeset describing the checkout bump for canonical workflow templates.

Bump canonical Squad workflow templates to actions/checkout@v7 and sync generated template mirrors with node scripts/sync-templates.mjs --sync.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@serbrech
serbrech force-pushed the serbrech-bump-checkout-action branch from 11b1456 to bb822d5 Compare July 2, 2026 03:58
@tamirdresher

Copy link
Copy Markdown
Collaborator

@bradygaster — heads up, this bumps the canonical workflow templates from checkout v4→v7. I've reviewed it and it looks good (Squad templates don't use \pull_request_target\ so the v7 fork-checkout blocking won't affect anything). The security hardening is a plus. Can you give this a quick look before merge since it touches all the template mirrors?

@tamirdresher

Copy link
Copy Markdown
Collaborator

Hey @serbrech — heads up that #1442 by @omercangumus supersedes this PR. That one pins ALL GitHub Actions references to full-length commit SHAs (which includes bumping checkout to v7 implicitly via \�ctions/checkout@9c091bb... #v7). Since SHA pinning is stricter than tag-only bumps and covers the same ground + more, this PR may no longer be needed once #1442 merges. Want to close this in favor of #1442, or is there something here that #1442 doesn't cover?

@tamirdresher tamirdresher left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Clean actions/checkout v4 -> v7 bump — consistent across all 54 template mirrors, no stray versions left behind. Safe to merge once the red test check re-runs green (appears to be a transient/unrelated failure, not caused by this change).

@serbrech

serbrech commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Hey @serbrech — heads up that #1442 by @omercangumus supersedes this PR. That one pins ALL GitHub Actions references to full-length commit SHAs (which includes bumping checkout to v7 implicitly via \�ctions/checkout@9c091bb... #v7). Since SHA pinning is stricter than tag-only bumps and covers the same ground + more, this PR may no longer be needed once #1442 merges. Want to close this in favor of #1442, or is there something here that #1442 doesn't cover?

had a look at that PR, makes sense to close in favor of that.
thanks.

@serbrech serbrech closed this Jul 8, 2026
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.

3 participants