GitHub actions: limit GITHUB_TOKEN permissions (#1933)

This commit is contained in:
Jeremy Daer
2025-12-04 11:05:50 -08:00
committed by GitHub
parent 4e0b83340d
commit bc1075f194
4 changed files with 12 additions and 0 deletions
+3
View File
@@ -3,6 +3,9 @@ name: Checks
on:
pull_request:
permissions:
contents: read
jobs:
security:
name: Security
+3
View File
@@ -4,6 +4,9 @@ on:
pull_request:
types: [opened, synchronize]
permissions:
contents: read
jobs:
test:
if: github.event.pull_request.head.repo.full_name != github.repository
+3
View File
@@ -3,6 +3,9 @@ name: CI (SaaS)
on:
push:
permissions:
contents: read
jobs:
test_oss:
name: Test (OSS)
+3
View File
@@ -10,6 +10,9 @@ on:
GH_TOKEN:
required: false
permissions:
contents: read
jobs:
test:
name: Tests (${{ matrix.mode }})