Просмотр исходного кода

Move codeql permissions to job level to satisfy zizmor

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Carl Tashian 9 месяцев назад
Родитель
Сommit
015f0f265e
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      .github/workflows/ci.yml

+ 4 - 2
.github/workflows/ci.yml

@@ -17,12 +17,14 @@ concurrency:
   cancel-in-progress: true
 
 permissions:
-  actions: read
   contents: read
-  security-events: write
 
 jobs:
   ci:
+    permissions:
+      actions: read
+      contents: read
+      security-events: write
     uses: smallstep/workflows/.github/workflows/goCI.yml@main
     with:
       only-latest-golang: false