Skip to content

Commit 2a05c8c

Browse files
committed
Tidy up small changes
1 parent 90b416f commit 2a05c8c

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

.github/workflows/claude.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Claude Code
1+
name: Claude Review
22

33
on:
44
issue_comment:
@@ -18,6 +18,7 @@ jobs:
1818
contents: read
1919
outputs:
2020
should_comment: ${{ steps.validate.outputs.should_comment }}
21+
2122
steps:
2223
- name: Check GitHub event
2324
id: check-github-event
@@ -63,6 +64,7 @@ jobs:
6364
echo "⚠️ Validation: Azure credentials not available"
6465
echo "This is expected for external contributors or forks"
6566
fi
67+
6668
- name: Set validation result
6769
id: validate
6870
run: |
@@ -76,7 +78,7 @@ jobs:
7678
fi
7779
7880
comment:
79-
name: Claude Comment
81+
name: Claude comment
8082
runs-on: ubuntu-24.04
8183
needs: validation
8284
if: needs.validation.outputs.should_comment == 'true'
@@ -88,13 +90,30 @@ jobs:
8890
actions: read
8991

9092
steps:
91-
- name: Checkout repository
93+
- name: Check out repo
9294
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
9395
with:
9496
fetch-depth: 1
9597

98+
- name: Log in to Azure
99+
uses: bitwarden/gh-actions/azure-login@main
100+
with:
101+
subscription_id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
102+
tenant_id: ${{ secrets.AZURE_TENANT_ID }}
103+
client_id: ${{ secrets.AZURE_CLIENT_ID }}
104+
105+
- name: Get Azure Key Vault secrets
106+
id: get-kv-secrets
107+
uses: bitwarden/gh-actions/get-keyvault-secrets@main
108+
with:
109+
keyvault: gh-org-bitwarden
110+
secrets: "ANTHROPIC-API-KEY"
111+
112+
- name: Log out from Azure
113+
uses: bitwarden/gh-actions/azure-logout@main
114+
96115
- name: Run Claude Code
97116
id: claude
98117
uses: anthropics/claude-code-action@e8bad572273ce919ba15fec95aef0ce974464753 # v1.0.13
99118
with:
100-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
119+
anthropic_api_key: ${{ steps.get-kv-secrets.outputs.ANTHROPIC-API-KEY }}

0 commit comments

Comments
 (0)