Skip to content

Commit 5083aff

Browse files
committed
build: explicitly set permissions and token
1 parent d13eb6a commit 5083aff

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/track_todos.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ on:
2828
# Allow the workflow to be manually run:
2929
workflow_dispatch:
3030

31+
# Global permissions:
32+
permissions:
33+
# Allow read-only access to the repository contents:
34+
contents: read
35+
3136
# Workflow jobs:
3237
jobs:
3338

@@ -77,6 +82,7 @@ jobs:
7782
title: 'TODO comments'
7883
content-filepath: ./tracking_issue_todos.md
7984
issue-number: 803
85+
token: ${{ secrets.PULL_REQUEST_TOKEN }}
8086
labels: |
8187
todos
8288
automated-issue
@@ -89,6 +95,7 @@ jobs:
8995
title: 'FIXME comments'
9096
content-filepath: ./tracking_issue_fixmes.md
9197
issue-number: 804
98+
token: ${{ secrets.PULL_REQUEST_TOKEN }}
9299
labels: |
93100
fixmes
94101
automated-issue

0 commit comments

Comments
 (0)