Skip to content

Fix: Pass ISSUE_ASSIGN_TOKEN as action input#56

Merged
pdettori merged 1 commit intokagenti:mainfrom
rubambiza:fix/self-assign-token-input
Apr 3, 2026
Merged

Fix: Pass ISSUE_ASSIGN_TOKEN as action input#56
pdettori merged 1 commit intokagenti:mainfrom
rubambiza:fix/self-assign-token-input

Conversation

@rubambiza
Copy link
Copy Markdown
Contributor

Summary

  • Pass ISSUE_ASSIGN_TOKEN as the token input to bdougie/take-action instead of as a GITHUB_TOKEN env var

bdougie/take-action maps inputs.token to the internal GITHUB_PAT env var used in its curl calls. Setting GITHUB_TOKEN as an env var had no effect, leaving GITHUB_PAT empty and causing 401 "Bad credentials" on every assignment and comment API call.

The workflow reported success because the action uses bare curl without -f, so HTTP 401 responses don't fail the step.

Fixes kagenti/kagenti#1125

bdougie/take-action expects the PAT via its `token` input, which maps
to `GITHUB_PAT` internally. Passing it as a `GITHUB_TOKEN` env var
left the action's `GITHUB_PAT` empty, causing 401 "Bad credentials"
on every assignment API call.

Signed-off-by: Gloire Rubambiza <gloire@Gloires-MacBook-Air.local>
Copy link
Copy Markdown
Contributor

@pdettori pdettori left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@pdettori pdettori merged commit 4eac01e into kagenti:main Apr 3, 2026
1 check passed
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.

🐛 /claim workflow not working as expected

2 participants