Преглед изворни кода

ci: tighten build permissions and CodeQL path coverage

Limit the build workflow token to contents:read by default, and
include lang/** so language-tooling changes trigger CodeQL.

Co-authored-by: Cursor <cursoragent@cursor.com>
jamesread пре 1 дан
родитељ
комит
b0f6a2ccad
2 измењених фајлова са 5 додато и 0 уклоњено
  1. 3 0
      .github/workflows/build-and-release.yml
  2. 2 0
      .github/workflows/codeql-analysis.yml

+ 3 - 0
.github/workflows/build-and-release.yml

@@ -52,6 +52,9 @@ on:
       - 'var/macos/**'
       - 'var/macos/**'
       - 'var/windows/**'
       - 'var/windows/**'
 
 
+permissions:
+  contents: read
+
 jobs:
 jobs:
   build:
   build:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest

+ 2 - 0
.github/workflows/codeql-analysis.yml

@@ -18,6 +18,7 @@ on:
       - '.github/workflows/codeql-analysis.yml'
       - '.github/workflows/codeql-analysis.yml'
       - 'frontend/**'
       - 'frontend/**'
       - 'integration-tests/**'
       - 'integration-tests/**'
+      - 'lang/**'
       - 'proto/**'
       - 'proto/**'
       - 'service/**'
       - 'service/**'
     branches: [main, next]
     branches: [main, next]
@@ -26,6 +27,7 @@ on:
       - '.github/workflows/codeql-analysis.yml'
       - '.github/workflows/codeql-analysis.yml'
       - 'frontend/**'
       - 'frontend/**'
       - 'integration-tests/**'
       - 'integration-tests/**'
+      - 'lang/**'
       - 'proto/**'
       - 'proto/**'
       - 'service/**'
       - 'service/**'
     branches: [main, next]
     branches: [main, next]