Skip to content

Update non-Default GitHub token usage to Mu GitHub app #217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/prepare-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ jobs:
- name: Checkout Self
uses: actions/checkout@v4

- name: Generate Token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.MU_ACCESS_APP_ID }}
private-key: ${{ secrets.MU_ACCESS_APP_PRIVATE_KEY }}

- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -79,7 +86,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') && !endsWith(github.event.release.tag_name, '-signed')
with:
files: ReleaseFirmwareArchive/*
token: ${{ secrets.GH_UEFI_BOT_PUBLISH_TOKEN }}
token: ${{ steps.app-token.outputs.token }}

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