]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
CI: make job permissions explicit (#1227)
authorAarni Koskela <akx@iki.fi>
Tue, 9 Sep 2025 15:52:51 +0000 (18:52 +0300)
committerGitHub <noreply@github.com>
Tue, 9 Sep 2025 15:52:51 +0000 (18:52 +0300)
.github/workflows/ci.yml

index a5ed97f22248aeb92a27253d8d2763bdcd6d72e9..7392ea4030b8b39386cdd94d549bd41b73f385f7 100644 (file)
@@ -14,6 +14,8 @@ on:
 
 jobs:
   lint:
+    permissions:
+      contents: read
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v4
@@ -21,6 +23,8 @@ jobs:
         env:
           RUFF_OUTPUT_FORMAT: github
   test:
+    permissions:
+      contents: read
     runs-on: ${{ matrix.os }}
     strategy:
       matrix:
@@ -68,6 +72,8 @@ jobs:
         token: ${{ secrets.CODECOV_TOKEN }}
         verbose: true
   build:
+    permissions:
+      contents: read
     runs-on: ubuntu-24.04
     needs: lint
     steps: