Skip to content

Fix Linear API auth — remove Bearer prefix from Authorization header#590

Merged
riddim-developer-bot[bot] merged 1 commit into
mainfrom
fix/linear-bearer-header
May 25, 2026
Merged

Fix Linear API auth — remove Bearer prefix from Authorization header#590
riddim-developer-bot[bot] merged 1 commit into
mainfrom
fix/linear-bearer-header

Conversation

@riddim-developer-bot

Copy link
Copy Markdown
Contributor

Why

Linear API keys don't use the Bearer scheme. The script was sending `Authorization: Bearer ` which Linear rejects with HTTP 400. Discovered during EPAC-2013 human handoff verification — the CI Failure Handler has been failing on every run since EPAC-2008 shipped.

What changed

  • Removed `Bearer ` prefix from the `Authorization` header in `LinearClient._request_with_retries`

Test plan

Re-run the failed CI Failure Handler run after this merges to confirm a Linear issue is created.

@riddim-developer-bot
riddim-developer-bot Bot enabled auto-merge (squash) May 25, 2026 17:28
@riddim-developer-bot
riddim-developer-bot Bot merged commit f8782e5 into main May 25, 2026
5 checks passed
@riddim-developer-bot
riddim-developer-bot Bot deleted the fix/linear-bearer-header branch May 25, 2026 17:30
riddim-developer-bot Bot added a commit that referenced this pull request May 25, 2026
## Why

The \`find_open_issue\` GraphQL query passed \`[unstarted, started]\` as
bare identifiers. Linear's schema expects string values: \`["unstarted",
"started"]\`. Discovered during EPAC-2013 human handoff verification —
the handler was failing with \`GRAPHQL_VALIDATION_FAILED\` after the
Bearer fix (PR #590) landed.

## What changed

- Quoted the state type values in the \`FindOpenCIFailureIssues\` query
filter

## Test plan

Next CI Failure Handler run should reach Linear successfully and create
an issue.

Co-authored-by: Sunny Purewal <sunny@riddimsoftware.com>
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