Fix Marvin token generation (#1416)

This commit is contained in:
Jeremiah Lowin 2025-08-08 17:12:23 -04:00 committed by GitHub
commit 2ef4b5b4dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,9 +36,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Get Marvin app token
id: mtoken
uses: tibdex/github-app-token@v2
- name: Generate Marvin App token
id: marvin-token
uses: actions/create-github-app-token@v1
with:
app_id: ${{ secrets.MARVIN_APP_ID }}
private_key: ${{ secrets.MARVIN_APP_PRIVATE_KEY }}
@ -55,7 +55,7 @@ jobs:
(github.event_name == 'discussion_comment' && contains(github.event.comment.body, '/marvin'))
uses: anthropics/claude-code-action@beta
with:
github-token: ${{ steps.mtoken.outputs.token }}
github-token: ${{ steps.marvin-token.outputs.token }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
mode: tag
trigger_phrase: "/marvin"
@ -72,7 +72,7 @@ jobs:
(github.event_name == 'discussion_comment' && contains(github.event.comment.body, '@Marvin Context Protocol'))
uses: anthropics/claude-code-action@beta
with:
github-token: ${{ steps.mtoken.outputs.token }}
github-token: ${{ steps.marvin-token.outputs.token }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
mode: tag
trigger_phrase: "@Marvin Context Protocol"
@ -84,7 +84,7 @@ jobs:
(github.event_name == 'issues' && github.event.action == 'labeled' && github.event.label.name == 'marvin')
uses: anthropics/claude-code-action@beta
with:
github-token: ${{ steps.mtoken.outputs.token }}
github-token: ${{ steps.marvin-token.outputs.token }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
mode: tag
assignee_trigger: "Marvin Context Protocol"