Bläddra i källkod

GitHub Workflows security hardening (#1763)

Signed-off-by: Alex <aleksandrosansan@gmail.com>
Alex 2 år sedan
förälder
incheckning
3b866c9185

+ 3 - 0
.github/workflows/continuous-integration.yml

@@ -4,6 +4,9 @@ on:
   - push
   - push
   - pull_request
   - pull_request
 
 
+permissions:
+  contents: read # to fetch code (actions/checkout)
+
 jobs:
 jobs:
   tests:
   tests:
     name: "CI (PHP ${{ matrix.php-version }}, ${{ matrix.dependencies }} deps)"
     name: "CI (PHP ${{ matrix.php-version }}, ${{ matrix.dependencies }} deps)"

+ 3 - 0
.github/workflows/lint.yml

@@ -4,6 +4,9 @@ on:
   push:
   push:
   pull_request:
   pull_request:
 
 
+permissions:
+  contents: read # to fetch code (actions/checkout)
+
 jobs:
 jobs:
   tests:
   tests:
     name: "Lint"
     name: "Lint"

+ 3 - 0
.github/workflows/phpstan.yml

@@ -7,6 +7,9 @@ on:
 env:
 env:
   COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
   COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
 
 
+permissions:
+  contents: read # to fetch code (actions/checkout)
+
 jobs:
 jobs:
   tests:
   tests:
     name: "PHPStan"
     name: "PHPStan"