Browse Source

build: harden main-ci.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>

Alex 2 years ago
parent
commit
9402f8c104
1 changed files with 3 additions and 0 deletions
  1. 3 0
      .github/workflows/main-ci.yml

+ 3 - 0
.github/workflows/main-ci.yml

@@ -11,6 +11,9 @@ on:
   schedule:
     - cron: '0 0 * * 0'
 
+permissions:
+  contents: read # to fetch code (actions/checkout)
+
 jobs:
   build-php:
     # Don't trigger on schedule event when in a fork