Skip to content

Fix Slack notify workflow GitHub auth#995

Merged
danbarr merged 1 commit into
mainfrom
fix-slack-workflow-github-token
Jun 30, 2026
Merged

Fix Slack notify workflow GitHub auth#995
danbarr merged 1 commit into
mainfrom
fix-slack-workflow-github-token

Conversation

@danbarr

@danbarr danbarr commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Description

#994 dropped id-token: write from autogen-docs-notify.yml to stop claude-code-action from trying OIDC for Anthropic auth. That broke a different code path: the action also uses OIDC (independent of anthropic_api_key) to mint a GitHub token via app-token exchange, and that started failing once id-token: write was removed.

Fix is to set github_token explicitly on the action step, which skips the OIDC exchange entirely and falls back to the job's own minimally scoped GITHUB_TOKEN (contents: read, pull-requests: read, actions: read). No id-token: write needed.

Type of change

  • Bug fix (typo, broken link, etc.)

Related issues/PRs

Follow-up to #994

Submitter checklist

Content and formatting

  • I have reviewed the content for technical accuracy
  • I have reviewed the content for spelling, grammar, and style

Reviewer checklist

Content

  • I have reviewed the content for technical accuracy
  • I have reviewed the content for spelling, grammar, and style

claude-code-action tries to mint a GitHub token via OIDC unless
github_token is set explicitly, independent of anthropic_api_key.
Removing id-token: write broke that exchange. Pass github_token so
the action uses the job's existing minimally scoped GITHUB_TOKEN
instead of requesting OIDC.
Copilot AI review requested due to automatic review settings June 30, 2026 18:40
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-website Ready Ready Preview, Comment Jun 30, 2026 6:40pm

Request Review

@danbarr
danbarr merged commit 3dec982 into main Jun 30, 2026
4 checks passed
@danbarr
danbarr deleted the fix-slack-workflow-github-token branch June 30, 2026 18:42
@danbarr
danbarr removed the request for review from Copilot June 30, 2026 19:25
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.

2 participants