Skip to content

Commit f35c5a6

Browse files
authored
Use organization ISSUE_COMMANDS_TOKEN with reduced scope (#86)
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>
1 parent d590687 commit f35c5a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/issue_commands.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
run: npm install --production --prefix ./actions
1717
- name: Run Commands
1818
uses: ./actions/commands
19-
with:
20-
token: ${{secrets.GH_BOT_ACCESS_TOKEN}}
21-
configPath: issue_commands
19+
with:
20+
token: ${{secrets.ISSUE_COMMANDS_TOKEN}}
21+
configPath: issue_commands

0 commit comments

Comments
 (0)