Skip to content

Commit 258aaef

Browse files
Use GitHub App client IDs for token minting
Upgrade create-github-app-token to pinned v3 and use its client-id input, matching the reusable workflow credential contract. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 9a654b8 commit 258aaef

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/Build-Module.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ jobs:
4343

4444
- name: Create GitHub App token
4545
id: App-Token
46-
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
46+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
4747
with:
48-
app-id: ${{ secrets.GitHubAppClientId }}
48+
client-id: ${{ secrets.GitHubAppClientId }}
4949
private-key: ${{ secrets.GitHubAppPrivateKey }}
5050
repositories: ${{ github.event.repository.name }}
5151
permission-metadata: read

.github/workflows/Plan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ jobs:
8888

8989
- name: Create GitHub App token
9090
id: App-Token
91-
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
91+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
9292
with:
93-
app-id: ${{ secrets.GitHubAppClientId }}
93+
client-id: ${{ secrets.GitHubAppClientId }}
9494
private-key: ${{ secrets.GitHubAppPrivateKey }}
9595
repositories: ${{ github.event.repository.name }}
9696
permission-contents: read

.github/workflows/Publish-Module.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ jobs:
4545

4646
- name: Create GitHub App token
4747
id: App-Token
48-
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
48+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
4949
with:
50-
app-id: ${{ secrets.GitHubAppClientId }}
50+
client-id: ${{ secrets.GitHubAppClientId }}
5151
private-key: ${{ secrets.GitHubAppPrivateKey }}
5252
repositories: ${{ github.event.repository.name }}
5353
permission-contents: write

docs/content/guides/github-app-authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ The token action is pinned and exposes its output only to the steps that need Gi
8585
```yaml
8686
- name: Create GitHub App token
8787
id: App-Token
88-
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
88+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
8989
with:
90-
app-id: ${{ secrets.GitHubAppClientId }}
90+
client-id: ${{ secrets.GitHubAppClientId }}
9191
private-key: ${{ secrets.GitHubAppPrivateKey }}
9292
repositories: ${{ github.event.repository.name }}
9393
permission-metadata: read

0 commit comments

Comments
 (0)