Repository navigation
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Removing release-age validation also removed concrete tag resolution for latest, causing uncached installs without an explicit checksum-manifest pin to fail by looking up vlatest.
1 open issue
What changed in this PR
This PR addresses the Enterprise token failure in #77115 by moving the pinned Copilot CLI’s release-age check from runtime installation to gh-aw’s build-time tests.
Changes:
- Add an offline 72-hour check tied to the default CLI version and publication timestamp.
- Remove runtime release-age requests while preserving checksum verification and accepting the legacy cooldown flag as a no-op.
- Update tests and documentation to distinguish CLI behavior from npm and Copilot SDK cooldown enforcement.
| File | Description |
|---|---|
pkg/workflow/copilot_installer.go |
Document why the compiler retains the legacy flag. |
pkg/constants/version_constants.go |
Add cooldown verification to the version-upgrade checklist. |
pkg/constants/version_constants_test.go |
Check the pinned version’s recorded release age. |
pkg/cli/install_copilot_cli_cooldown_test.go |
Test metadata-free installs and preserved checksum checks. |
docs/src/content/docs/reference/frontmatter.md |
Clarify cooldown scope and Enterprise behavior. |
docs/src/content/docs/reference/engines.md |
Explain static CLI checks and npm cooldown enforcement. |
actions/setup/sh/install_copilot_cli.sh |
Remove runtime age validation and retain legacy flag parsing. |
Review effort: Balanced (adaptive)
| VERSION="$(check_copilot_release_age "$VERSION")" || exit 1 | ||
|
|
||
| # Build download URLs | ||
| if [ -z "$VERSION" ] || [ "$VERSION" = "latest" ]; then |
There was a problem hiding this comment.
Resolved latest through the public GitHub release redirect, validated the concrete tag, and use that tag for checksum lookup and both downloads. Restored the download-latest regression case. Commit: ef1decfea2.
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data
|
…li-install-401-error # Conflicts: # docs/src/content/docs/reference/engines.md Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Merged the latest |
|
@copilot do not keep legacy unused flags |
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Removed the legacy flag from the installer and compiler output, while preserving |

Copilot CLI installation fails on
ghe.combecause the runtime release-age check sends an Enterprise-issued token toapi.github.com, which rejects it with 401—even for toolcache hits.check_copilot_release_ageand its token/jq requirements. Preserve checksum verification.--cooldown-daysas a documented no-op to avoid lock-file churn. Clarify thatengine.cooldownstill controls Copilot SDK npm installs, while custom CLI versions receive no age check.