Skip to content
Draft
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion .github/workflows/promote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ permissions:
jobs:
promote:
uses: unikraft-cloud/x/.github/workflows/promote.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 }}
12 changes: 11 additions & 1 deletion .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Mint a token of the GitHub App
id: app-token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ vars.TOOLING_APP_CLIENT_ID }}
private-key: ${{ secrets.TOOLING_APP_PRIVATE_KEY }}
repositories: ${{ github.event.repository.name }}
permission-contents: write
permission-pull-requests: write

- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
ref: ${{ inputs.channel }}
Expand Down Expand Up @@ -57,7 +67,7 @@ jobs:
- name: Create pull request
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
with:
token: ${{ secrets.GH_PAT }}
token: ${{ steps.app-token.outputs.token }}
base: ${{ inputs.channel }}
commit-message: "chore: Update Python SDK from OpenAPI spec"
title: "chore: Update Python SDK from OpenAPI spec"
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/tooling-app.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Loading