Avoid disabling inactive Step 0 workflow - #74
Merged
Conversation
The reusable start-exercise job already disables Steps 0, 2, and 3. Only enable Step 1 afterward to avoid the CLI's HTTP 403 for already-inactive workflows. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: d523f2fa-5ffe-4981-846a-3627b824bae9
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a Step 0 handoff failure by removing an attempt to disable the already-disabled Step 0 workflow (which can return HTTP 403 when inactive), while still enabling Step 1 so the exercise can proceed.
Changes:
- Removes
gh workflow disable "0-start-exercise.yml"from Step 0 to avoid failing when the workflow is inactive. - Keeps Step 0 responsible only for enabling Step 1 by workflow filename via
gh workflow enable "1-step.yml".
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/0-start-exercise.yml | Stops disabling Step 0 (avoids 403 failure) and only enables Step 1 after the toolkit reset disables numbered workflows. |
Review details
Tip
Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Step 0 handoff still fails because the reusable
start_exercisejob has already disabled every exercise workflow, andgh workflow disablereturns HTTP 403 when Step 0 is inactive.Rely on the completed toolkit reset for Steps 0, 2, and 3, then use the
gh workflowclient only to enable Step 1 by filename.