]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
github: Restrict permissions
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 5 Jul 2022 21:26:30 +0000 (17:26 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 5 Jul 2022 21:26:30 +0000 (17:26 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
.github/workflows/builds.yml
.github/workflows/commits.yml
.github/workflows/tests.yml

index b3e5d9e0812441cca03b23b4156a82b3c965fe76..5b2b868438e781054766467b99ee25ba6c57c7be 100644 (file)
@@ -4,6 +4,9 @@ on:
     branches:
       - master
 
+permissions:
+  contents: read
+
 jobs:
   coverity:
     name: Coverity
index c899249256eb8633cd64462e6ec4b952b1c3ee01..94d906b94d91d9f2972677b3c7cdd85714bc0fd4 100644 (file)
@@ -2,8 +2,13 @@ name: Commits
 on:
   - pull_request
 
+permissions:
+  contents: read
+
 jobs:
   dco-check:
+    permissions:
+      pull-requests: read  # for tim-actions/get-pr-commits to get list of commits from the PR
     name: Signed-off-by (DCO)
     runs-on: ubuntu-20.04
     steps:
index dd0ef0713589aa0f43947dc8ee5920a3ca97d01d..204b5c8634e30b9d2b14b52f5ec23264352b9138 100644 (file)
@@ -3,6 +3,9 @@ on:
   - push
   - pull_request
 
+permissions:
+  contents: read
+
 jobs:
   fuse2:
     name: FUSE2