Skip to content

Commit

Permalink
ci: add minimum GitHub token permissions for workflows (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkurmi authored Sep 9, 2022
1 parent 57ebc7a commit cd22aee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cancel.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: Cancel
on: [push]
permissions:
contents: read

jobs:
cancel:
permissions:
actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows
name: Cancel Previous Runs
runs-on: ubuntu-latest
timeout-minutes: 3
Expand Down

0 comments on commit cd22aee

Please sign in to comment.