From 51deff551dbc2ec877cba63c5f667fac459c5ca3 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Tue, 5 May 2026 05:22:14 +0000 Subject: [PATCH] Add renovate-app-token workflow and repository_dispatch trigger to release - Added for Mend Renovate GitHub App token generation - Added trigger to release workflow for automated upstream releases Co-Authored-By: Paperclip --- .github/workflows/release.yaml | 4 +++- .github/workflows/renovate-app-token.yaml | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/renovate-app-token.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 87297b0..9884570 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,6 +7,8 @@ on: description: 'Release version (e.g. 1.0.0)' required: true type: string + repository_dispatch: + types: [release] permissions: contents: write @@ -19,5 +21,5 @@ jobs: RELEASE_APP_ID: ${{ secrets.RELEASE_APP_ID }} RELEASE_APP_PRIVATE_KEY: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} with: - version: ${{ inputs.version }} + version: ${{ inputs.version || github.event.client_payload.version }} upstream-repo: fenio/tns-csi diff --git a/.github/workflows/renovate-app-token.yaml b/.github/workflows/renovate-app-token.yaml new file mode 100644 index 0000000..84b6e3c --- /dev/null +++ b/.github/workflows/renovate-app-token.yaml @@ -0,0 +1,21 @@ +name: Mend Renovate GitHub App Token + +on: + workflow_call: + outputs: + token: + description: "Short-lived GitHub App installation token" + value: ${{ jobs.app-token.outputs.token }} + +jobs: + app-token: + runs-on: runners-privilegedescalation + outputs: + token: ${{ steps.app-token.outputs.token }} + steps: + - name: Generate GitHub App token + id: app-token + uses: actions/create-github-app-token@v3 + with: + app-id: ${{ secrets.RELEASE_APP_ID }} + private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} \ No newline at end of file