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:
parent
df1517573e
commit
0fc43c5e26
1 changed files with 4 additions and 4 deletions
8
.github/workflows/issue_commands.yml
vendored
8
.github/workflows/issue_commands.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue