Skip to content

Commit 2a79741

Browse files
committed
fix: Pass ACTIONS_APP_ID as workflow input instead of vars
1 parent 9559737 commit 2a79741

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/claude-code-dependency-review.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ on:
1818
ACTIONS_APP_PRIVATE_KEY:
1919
required: false
2020
description: Private key for the GitHub App used to access private repositories
21+
inputs:
22+
ACTIONS_APP_ID:
23+
required: false
24+
type: string
25+
description: App ID for the GitHub App used to access private repositories
2126

2227
jobs:
2328
dependency-review:
@@ -36,11 +41,11 @@ jobs:
3641
fetch-depth: 1
3742

3843
- name: Generate token for private repositories
39-
if: vars.ACTIONS_APP_ID != ''
44+
if: inputs.ACTIONS_APP_ID != ''
4045
uses: actions/create-github-app-token@v1
4146
id: app-token
4247
with:
43-
app-id: ${{ vars.ACTIONS_APP_ID }}
48+
app-id: ${{ inputs.ACTIONS_APP_ID }}
4449
private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }}
4550
owner: ${{ github.repository_owner }}
4651

0 commit comments

Comments
 (0)