Chore: Use Github App credentials for pr-commands.yml workflow (#72400)

* Use grafana-pr-automation credentials

* Action!
This commit is contained in:
Josh Hunt 2023-07-26 20:48:32 +00:00 committed by GitHub
parent fbd2412f37
commit 18a364eb2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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