Skip to content

Commit ea7787a

Browse files
committed
ci: add minimum GitHub token permissions for workflows
Signed-off-by: Ashish Kurmi <akurmi@stepsecurity.io>
1 parent 57ebc7a commit ea7787a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/cancel.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
name: Cancel
22
on: [push]
3+
permissions:
4+
contents: read
5+
36
jobs:
47
cancel:
8+
permissions:
9+
actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows
510
name: Cancel Previous Runs
611
runs-on: ubuntu-latest
712
timeout-minutes: 3

0 commit comments

Comments
 (0)