From 311c9ac0561b4ad58a33676b6365740520a12e12 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Mon, 29 Sep 2025 20:39:39 -0400 Subject: [PATCH 1/4] Replace prompt_file with prompt input and set bot_name --- .github/workflows/marvin-dedupe-issues.yml | 11 +++++++---- .github/workflows/marvin-label-triage.yml | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/marvin-dedupe-issues.yml b/.github/workflows/marvin-dedupe-issues.yml index a7ba89f68..5d83cbdf7 100644 --- a/.github/workflows/marvin-dedupe-issues.yml +++ b/.github/workflows/marvin-dedupe-issues.yml @@ -30,10 +30,11 @@ jobs: app-id: ${{ secrets.MARVIN_APP_ID }} private-key: ${{ secrets.MARVIN_APP_PRIVATE_KEY }} - - name: Create dedupe prompt + - name: Set dedupe prompt + id: dedupe-prompt run: | - mkdir -p /tmp/claude-prompts - cat > /tmp/claude-prompts/dedupe-prompt.txt << 'EOF' + cat >> $GITHUB_OUTPUT << 'EOF' + PROMPT< /tmp/claude-prompts/triage-prompt.txt << 'EOF' + cat >> $GITHUB_OUTPUT << 'EOF' + PROMPT< Date: Mon, 29 Sep 2025 20:40:28 -0400 Subject: [PATCH 2/4] Remove github_token input, rely on OIDC + env var --- .github/workflows/marvin-dedupe-issues.yml | 1 - .github/workflows/marvin-label-triage.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/workflows/marvin-dedupe-issues.yml b/.github/workflows/marvin-dedupe-issues.yml index 5d83cbdf7..7fe10af14 100644 --- a/.github/workflows/marvin-dedupe-issues.yml +++ b/.github/workflows/marvin-dedupe-issues.yml @@ -76,7 +76,6 @@ jobs: - name: Run Marvin dedupe command uses: anthropics/claude-code-action@v1 with: - github_token: ${{ steps.marvin-token.outputs.token }} bot_name: "Marvin Context Protocol" prompt: ${{ steps.dedupe-prompt.outputs.PROMPT }} anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_FOR_CI }} diff --git a/.github/workflows/marvin-label-triage.yml b/.github/workflows/marvin-label-triage.yml index 4264741fd..d220e9c19 100644 --- a/.github/workflows/marvin-label-triage.yml +++ b/.github/workflows/marvin-label-triage.yml @@ -151,7 +151,6 @@ jobs: - name: RunĀ Marvin for Issue Triage uses: anthropics/claude-code-action@v1 with: - github_token: ${{ steps.marvin-token.outputs.token }} bot_name: "Marvin Context Protocol" prompt: ${{ steps.triage-prompt.outputs.PROMPT }} anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_FOR_CI }} From 717c4c1e81d93535b4e14bdb705794880afa5de5 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Mon, 29 Sep 2025 20:41:44 -0400 Subject: [PATCH 3/4] Add github_token back to match working marvin.yml --- .github/workflows/marvin-dedupe-issues.yml | 1 + .github/workflows/marvin-label-triage.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/marvin-dedupe-issues.yml b/.github/workflows/marvin-dedupe-issues.yml index 7fe10af14..5d83cbdf7 100644 --- a/.github/workflows/marvin-dedupe-issues.yml +++ b/.github/workflows/marvin-dedupe-issues.yml @@ -76,6 +76,7 @@ jobs: - name: Run Marvin dedupe command uses: anthropics/claude-code-action@v1 with: + github_token: ${{ steps.marvin-token.outputs.token }} bot_name: "Marvin Context Protocol" prompt: ${{ steps.dedupe-prompt.outputs.PROMPT }} anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_FOR_CI }} diff --git a/.github/workflows/marvin-label-triage.yml b/.github/workflows/marvin-label-triage.yml index d220e9c19..4264741fd 100644 --- a/.github/workflows/marvin-label-triage.yml +++ b/.github/workflows/marvin-label-triage.yml @@ -151,6 +151,7 @@ jobs: - name: RunĀ Marvin for Issue Triage uses: anthropics/claude-code-action@v1 with: + github_token: ${{ steps.marvin-token.outputs.token }} bot_name: "Marvin Context Protocol" prompt: ${{ steps.triage-prompt.outputs.PROMPT }} anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_FOR_CI }} From 8ae918974879ff5d884bf65ec435141a66ab240e Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Mon, 29 Sep 2025 20:48:25 -0400 Subject: [PATCH 4/4] Remove github_token to use built-in claude[bot] auth --- .github/workflows/marvin-dedupe-issues.yml | 1 - .github/workflows/marvin-label-triage.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/workflows/marvin-dedupe-issues.yml b/.github/workflows/marvin-dedupe-issues.yml index 5d83cbdf7..7fe10af14 100644 --- a/.github/workflows/marvin-dedupe-issues.yml +++ b/.github/workflows/marvin-dedupe-issues.yml @@ -76,7 +76,6 @@ jobs: - name: Run Marvin dedupe command uses: anthropics/claude-code-action@v1 with: - github_token: ${{ steps.marvin-token.outputs.token }} bot_name: "Marvin Context Protocol" prompt: ${{ steps.dedupe-prompt.outputs.PROMPT }} anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_FOR_CI }} diff --git a/.github/workflows/marvin-label-triage.yml b/.github/workflows/marvin-label-triage.yml index 4264741fd..d220e9c19 100644 --- a/.github/workflows/marvin-label-triage.yml +++ b/.github/workflows/marvin-label-triage.yml @@ -151,7 +151,6 @@ jobs: - name: RunĀ Marvin for Issue Triage uses: anthropics/claude-code-action@v1 with: - github_token: ${{ steps.marvin-token.outputs.token }} bot_name: "Marvin Context Protocol" prompt: ${{ steps.triage-prompt.outputs.PROMPT }} anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_FOR_CI }}