Use organization ISSUE_COMMANDS_TOKEN with reduced scope (#1248)

The new token is set at an organization level so it does not require
repository administrators to rotate the token. It also has the minimal
classic PAT permissions to facilitate the workflow.

It has expiry but that expiry is reported via email to the engineering
organization and the IT Helpdesk have permissions to regenerate the
token when expiration is imminent.

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
This commit is contained in:
Jack Baldry 2023-02-02 06:42:53 +00:00 committed by GitHub
parent df1517573e
commit 0fc43c5e26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ on:
issues:
types: [labeled]
pull_request:
types: [labeled]
types: [labeled]
jobs:
main:
runs-on: ubuntu-latest
@ -18,6 +18,6 @@ jobs:
run: npm install --production --prefix ./actions
- name: Run Commands
uses: ./actions/commands
with:
token: ${{secrets.GH_ISSUE_COMMANDS}}
configPath: issue_and_pr_commands
with:
token: ${{secrets.ISSUE_COMMANDS_TOKEN}}
configPath: issue_and_pr_commands