Update pr-codeql-analysis-go.yml to use token (#81395)

Updating .github/workflows/pr-codeql-analysis-go.yml to use GH token to work in private security m
irror
This commit is contained in:
Ricky Whitaker 2024-01-26 12:17:43 -06:00 committed by GitHub
parent 048d1e7c86
commit b758b91e84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,12 +16,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Generate token"
id: generate_token
continue-on-error: true
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_ID }}
private_key: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_PEM }}
- name: Checkout repository
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
token: ${{ steps.generate_token.outputs.token }}
- name: Set go version
uses: actions/setup-go@v4