chore(ci): tighten image build workflows permissions (#2526)

should help a little bit with the openssf score
This commit is contained in:
renner 2026-07-08 19:21:04 +02:00 committed by GitHub
parent 587540823d
commit 8b90b5809c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 18 deletions

View file

@ -20,17 +20,18 @@ on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
packages: write
id-token: write
attestations: write
artifact-metadata: write
permissions: {}
jobs:
build-image-latest:
name: Build Latest Images
uses: ./.github/workflows/reusable-build.yml
permissions:
contents: read
packages: write
id-token: write
attestations: write
artifact-metadata: write
secrets: inherit
strategy:
fail-fast: false

View file

@ -14,17 +14,18 @@ on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
packages: write
id-token: write
attestations: write
artifact-metadata: write
permissions: {}
jobs:
build-image-stable:
name: Build Stable Images
uses: ./.github/workflows/reusable-build.yml
permissions:
contents: read
packages: write
id-token: write
attestations: write
artifact-metadata: write
secrets: inherit
strategy:
fail-fast: false

View file

@ -11,17 +11,18 @@ on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
packages: write
id-token: write
attestations: write
artifact-metadata: write
permissions: {}
jobs:
build-image-testing:
name: Build Testing Images
uses: ./.github/workflows/reusable-build.yml
permissions:
contents: read
packages: write
id-token: write
attestations: write
artifact-metadata: write
secrets: inherit
strategy:
fail-fast: false