diff --git a/.github/workflows/bump-go.yaml b/.github/workflows/bump-go.yaml index 2f2ee7a..7236d3b 100644 --- a/.github/workflows/bump-go.yaml +++ b/.github/workflows/bump-go.yaml @@ -11,5 +11,8 @@ permissions: jobs: bump-go: uses: unikraft-cloud/x/.github/workflows/bump-go.yaml@prod-staging + with: + gh_client_id: ${{ vars.TOOLING_APP_CLIENT_ID }} secrets: gh_pat: ${{ secrets.GH_PAT }} + gh_private_key: ${{ secrets.TOOLING_APP_PRIVATE_KEY }} diff --git a/.github/workflows/tooling-app.yaml b/.github/workflows/tooling-app.yaml new file mode 100644 index 0000000..02434ca --- /dev/null +++ b/.github/workflows/tooling-app.yaml @@ -0,0 +1,27 @@ +name: tooling-app + +on: + schedule: + # Changing a secret doesn't trigger a run, so catch a swapped key here. + - cron: '0 9 * * 1' + workflow_dispatch: + push: + branches: [prod-staging] + pull_request: + branches: [prod-staging] + paths: + - .github/workflows/tooling-app.yaml + +permissions: + contents: read + +jobs: + # The fingerprint names the key of this repository on the tooling App's page. + app-key: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: unikraft-cloud/x/.github/actions/check-key-fingerprint@prod-staging + with: + private-key: ${{ secrets.TOOLING_APP_PRIVATE_KEY }} + fingerprint: ${{ vars.TOOLING_APP_PRIVATE_KEY_FINGERPRINT }}