2024-11-12 01:05:48 +00:00
|
|
|
name: "Generate a token for Rekku"
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
2024-11-12 02:36:40 +00:00
|
|
|
secrets:
|
2024-11-12 02:32:06 +00:00
|
|
|
REKKU_PRIVATE_KEY:
|
|
|
|
required: false
|
2024-11-12 01:05:48 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
Generate-a-token-for-Rekku:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2024-11-12 02:15:45 +00:00
|
|
|
outputs:
|
|
|
|
rekku_token: ${{ steps.generate-rekku-token.outputs.token }}
|
|
|
|
|
2024-11-12 01:05:48 +00:00
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Generate a token for Rekku
|
|
|
|
id: generate-rekku-token
|
|
|
|
uses: actions/create-github-app-token@v1
|
|
|
|
with:
|
|
|
|
app-id: ${{ vars.REKKU_APP_ID }}
|
2024-11-12 02:36:40 +00:00
|
|
|
private-key: ${{ secrets.REKKU_PRIVATE_KEY }}
|
2024-11-12 01:05:48 +00:00
|
|
|
owner: "RetroDECK"
|
2024-11-13 00:24:59 +00:00
|
|
|
skip-token-revoke: true
|