ci: Granular workflow permissions

This commit is contained in:
Kilian Tyler
2026-01-02 18:59:47 -05:00
parent 19b13b3238
commit e88f36412d
3 changed files with 6 additions and 3 deletions
-3
View File
@@ -16,9 +16,6 @@ env:
jobs:
build:
runs-on: ${{ matrix.runner }}
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
+2
View File
@@ -7,5 +7,7 @@ on:
jobs:
build:
uses: ./.github/workflows/build.yml
permissions:
contents: read
with:
push-to-registry: false
+4
View File
@@ -14,6 +14,10 @@ env:
jobs:
build:
uses: ./.github/workflows/build.yml
permissions:
contents: read
packages: write
secrets: inherit
with:
push-to-registry: true