Update actions/checkout to v6 in extension workflow templates by fchimpan · Pull Request #12393 · cli/cli

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the actions/checkout action from v4 to v6 in the GitHub CLI extension workflow templates. These templates are used when users create new gh extensions via gh extension create, ensuring that newly created extensions use the latest version of the checkout action.

Key Changes:

  • Updated actions/checkout@v4 to actions/checkout@v6 in both Go and non-Go binary extension workflow templates

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pkg/cmd/extension/ext_tmpls/goBinWorkflow.yml Updated checkout action to v6 in the Go binary extension workflow template
pkg/cmd/extension/ext_tmpls/otherBinWorkflow.yml Updated checkout action to v6 in the non-Go binary extension workflow template

Review Summary:

The changes are correct and consistent. I verified that:

  • All other workflow files in the repository (.github/workflows/*) already use actions/checkout@v6
  • These were the only two template files that still referenced v4
  • Both templates are embedded in manager.go and used when creating new extensions
  • The update ensures newly created extensions will use the current version of the checkout action

No issues found. The PR successfully brings the extension templates in line with the rest of the repository's workflows. ✅


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.