Skip to content

Commit 4ff37ea

Browse files
committed
Update non-Default GitHub token usage to Mu GitHub app
Generates tokens during workflow execution instead of directly depending on PATs. Signed-off-by: Aaron Pop <[email protected]>
1 parent a9131c7 commit 4ff37ea

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/prepare-binaries.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ jobs:
3434
- name: Checkout Self
3535
uses: actions/checkout@v4
3636

37+
- name: Generate Token
38+
id: app-token
39+
uses: actions/create-github-app-token@v2
40+
with:Add commentMore actions
41+
app-id: ${{ vars.MU_ACCESS_APP_ID }}
42+
private-key: ${{ secrets.MU_ACCESS_APP_PRIVATE_KEY }}
43+
3744
- name: Set up Python
3845
uses: actions/setup-python@v5
3946
with:
@@ -79,7 +86,7 @@ jobs:
7986
if: startsWith(github.ref, 'refs/tags/') && !endsWith(github.event.release.tag_name, '-signed')
8087
with:
8188
files: ReleaseFirmwareArchive/*
82-
token: ${{ secrets.GH_UEFI_BOT_PUBLISH_TOKEN }}
89+
token: ${{ steps.app-token.outputs.token }}
8390

8491
- name: Prepare Release Signed Archive
8592
run: python scripts/prepare_signed_binaries.py PostSignedObjects --output ReleaseSignedArtifacts --version ${{ github.event.release.tag_name }}
@@ -90,4 +97,4 @@ jobs:
9097
if: startsWith(github.ref, 'refs/tags/') && endsWith(github.event.release.tag_name, '-signed')
9198
with:
9299
files: ReleaseSignedArtifacts/*
93-
token: ${{ secrets.GH_UEFI_BOT_PUBLISH_TOKEN }}
100+
token: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)