From 18a364eb2ff539bbabc1eb035289bbb255eb6319 Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Wed, 26 Jul 2023 20:48:32 +0000 Subject: [PATCH] Chore: Use Github App credentials for pr-commands.yml workflow (#72400) * Use grafana-pr-automation credentials * Action! --- .github/workflows/pr-commands.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-commands.yml b/.github/workflows/pr-commands.yml index e034b8993d1..d868efb6926 100644 --- a/.github/workflows/pr-commands.yml +++ b/.github/workflows/pr-commands.yml @@ -19,9 +19,15 @@ jobs: ref: main - name: Install Actions run: npm install --production --prefix ./actions + - name: "Generate token" + id: generate_token + uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 + with: + app_id: ${{ secrets.GRAFANA_PR_AUTOMATION_APP_ID }} + private_key: ${{ secrets.GRAFANA_PR_AUTOMATION_APP_PEM }} - name: Run Commands uses: ./actions/commands with: metricsWriteAPIKey: ${{secrets.GRAFANA_MISC_STATS_API_KEY}} - token: ${{secrets.GITHUB_TOKEN}} + token: ${{ steps.generate_token.outputs.token }} configPath: pr-commands