Skip to content

fix(ci): keep official actions/checkout in Depot release-assets workflow - #520

Merged
kmendell merged 1 commit into
mainfrom
fix/depot-checkout-origin
Sep 19, 2026
Merged

kmendell merged 1 commit into
mainfrom
fix/depot-checkout-origin

Conversation

@kmendell

Copy link
Copy Markdown
Member

Problem

Every Depot run of Update Arcane Release Assets that actually had assets to commit failed at the Create pull request step:

##[error]The format of '' is not a valid GitHub repository URL

Depot CI silently replaces a bare actions/checkout step (no with: inputs) with its own shallow-pack clone script. That script never adds an origin remote, and peter-evans/create-pull-request reads remote.origin.url to find the repo and push.

It only ever worked before because the cron ran on GitHub Actions, where actions/checkout is real. Once releases were routed to the Depot copy on Sep 15, the first run with real changes (Sep 16) broke.

Fix

Give the first checkout an explicit fetch-depth: 1 (the default value) and bump to actions/checkout@v7. Any explicit input keeps Depot from substituting its script, so the official action runs and origin is set as usual.

Verification

Probed on Depot: bare checkout → no origin; fetch-depth: 1 / fetch-depth: 0 → real action, origin = github.com. Then ran this workflow end to end on Depot with the change; it opened #519 successfully.

🤖 Generated with Claude Code

Depot CI replaces a bare `actions/checkout` (no inputs) with its own
shallow-pack clone, which leaves no `origin` remote. create-pull-request
reads remote.origin.url and failed with "The format of '' is not a valid
GitHub repository URL" on every run that had assets to commit.

Passing an explicit `fetch-depth: 1` keeps the official action, which
sets up `origin` normally.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 19, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-19T21:01:39.839060Z 5525157 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@kmendell
kmendell merged commit 3c957e7 into main Sep 19, 2026
8 checks passed
@kmendell
kmendell deleted the fix/depot-checkout-origin branch September 19, 2026 21:12
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.

1 participant