Skip to content

Commit 33e9376

Browse files
authored
ci: harden cancel.yml permissions (#1408)
1 parent 71984cc commit 33e9376

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/cancel.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ on:
88
branches:
99
- master
1010
- next
11+
12+
permissions: {}
13+
1114
jobs:
1215
cancel:
16+
permissions:
17+
actions: write # to cancel/stop running workflows (styfle/cancel-workflow-action)
18+
1319
name: Cancel Previous Runs
1420
runs-on: ubuntu-latest
1521
timeout-minutes: 3

0 commit comments

Comments
 (0)