Skip to content

docs(openspec): plan #2491 Name GitHub's reason in App 401 error - #2992

Merged
dan-petty merged 1 commit into
mainfrom
fix/2491-a-refused-jwt-exchange-of-the
Nov 1, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/2491-a-refused-jwt-exchange-of-the

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Plans #2491

When GitHub refuses the App's JWT with HTTP 401, the error tells the operator to run gh auth login. A process acting as the App has no gh login, so the advice is wrong. The error also drops GitHub's reason from the response body. This change adds a 401 override in mint_installation_token, following the existing 422 pattern. The new reason includes GitHub's message and App-specific advice to check the App ID, installation ID and private key. The test assertion is updated to compare the full message.

Change: openspec/changes/2491-a-refused-jwt-exchange-of-the/

@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 1, 2026 09:27
@dan-petty
dan-petty merged commit 2e94906 into main Nov 1, 2026
18 checks passed
@dan-petty
dan-petty deleted the fix/2491-a-refused-jwt-exchange-of-the branch November 1, 2026 10:22
dan-petty added a commit that referenced this pull request Nov 1, 2026
This change corrects the OpenSpec plan for #2491 in place.

The plan came from pull request #2992. An evaluation on 2026-11-01 found
defects in it. The corrected plan now says where the new message
constant lives, what the new message holds, and how to prove the fix. It
also names the spec delta and the acceptance map.

The change touches only the plan folder. It changes no code and no test.

Plans #2491
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