Browse Source

Merge pull request #4734 from sashashura/patch-7

GitHub Workflows security hardening
Kim Kulling 3 năm trước cách đây
mục cha
commit
ca11fceb65
2 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 3 0
      .github/workflows/ccpp.yml
  2. 3 0
      .github/workflows/sanitizer.yml

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

@@ -6,6 +6,9 @@ on:
   pull_request:
     branches: [ master ]
 
+permissions:
+  contents: read # to fetch code (actions/checkout)
+
 jobs:
   job:
     name: ${{ matrix.name }}-build-and-test

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

@@ -6,6 +6,9 @@ on:
   pull_request:
     branches: [ master ]
 
+permissions:
+  contents: read # to fetch code (actions/checkout)
+
 jobs:
   job1:
     name: adress-sanitizer