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>
This commit is contained in:
jamesread
2026-09-10 17:02:52 +01:00
co-authored by Cursor
parent 0080f27dc4
commit b0f6a2ccad
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -52,6 +52,9 @@ on:
- 'var/macos/**'
- 'var/windows/**'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
+2
View File
@@ -18,6 +18,7 @@ on:
- '.github/workflows/codeql-analysis.yml'
- 'frontend/**'
- 'integration-tests/**'
- 'lang/**'
- 'proto/**'
- 'service/**'
branches: [main, next]
@@ -26,6 +27,7 @@ on:
- '.github/workflows/codeql-analysis.yml'
- 'frontend/**'
- 'integration-tests/**'
- 'lang/**'
- 'proto/**'
- 'service/**'
branches: [main, next]