Specify action permissions in cleanup task (#69014)
authorAdeel Mujahid <3840695+am11@users.noreply.github.com>
Mon, 9 May 2022 14:21:29 +0000 (17:21 +0300)
committerGitHub <noreply@github.com>
Mon, 9 May 2022 14:21:29 +0000 (08:21 -0600)
.github/workflows/backport.yml

index 9ddb513..3f7a3dd 100644 (file)
@@ -15,6 +15,8 @@ jobs:
   cleanup_old_runs:
     if: github.event.schedule == '0 13 * * *'
     runs-on: ubuntu-20.04
+    permissions:
+      actions: write
     env:
       GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
     steps: