From ea7787a1b27063ddac45969d915aca54516a6303 Mon Sep 17 00:00:00 2001 From: Ashish Kurmi Date: Thu, 8 Sep 2022 20:06:59 -0700 Subject: [PATCH] ci: add minimum GitHub token permissions for workflows Signed-off-by: Ashish Kurmi --- .github/workflows/cancel.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml index 66570c7c..c1e77d26 100644 --- a/.github/workflows/cancel.yml +++ b/.github/workflows/cancel.yml @@ -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