Browse Source

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

Alex 2 years ago
parent
commit
d0c0e2fc02
1 changed files with 3 additions and 0 deletions
  1. 3 0
      .github/workflows/test.yml

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

@@ -34,6 +34,9 @@ concurrency:
 # - elasticsearch 7, django 4.0, python 3.8, postgres
 # - elasticsearch 7, django 4.1, python 3.9, sqlite, USE_EMAIL_USER_MODEL=yes
 
+permissions:
+  contents: read # to fetch code (actions/checkout)
+
 jobs:
   test-sqlite:
     runs-on: ubuntu-latest