From cd22aeeb3225f3a0790b80f3c0c6a62840f291f2 Mon Sep 17 00:00:00 2001 From: Ashish Kurmi <100655670+boahc077@users.noreply.github.com> Date: Fri, 9 Sep 2022 07:44:49 -0700 Subject: [PATCH] ci: add minimum GitHub token permissions for workflows (#1470) --- .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