mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 09:26:43 -06:00
Use organization ISSUE_COMMANDS_TOKEN with reduced scope (#62446)
The GH_BOT_ACCESS_TOKEN has permissions beyond those required for addToProject and other API commands that the issue_commands workflow uses. 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>
This commit is contained in:
parent
c4909a6c2b
commit
3133e6c689
2
.github/workflows/commands.yml
vendored
2
.github/workflows/commands.yml
vendored
@ -22,5 +22,5 @@ jobs:
|
||||
uses: ./actions/commands
|
||||
with:
|
||||
metricsWriteAPIKey: ${{secrets.GRAFANA_MISC_STATS_API_KEY}}
|
||||
token: ${{secrets.GH_BOT_ACCESS_TOKEN}}
|
||||
token: ${{secrets.ISSUE_COMMANDS_TOKEN}}
|
||||
configPath: commands
|
||||
|
Loading…
Reference in New Issue
Block a user