chore(ci): tighten image build workflows permissions (#2526)
should help a little bit with the openssf score
This commit is contained in:
parent
587540823d
commit
8b90b5809c
3 changed files with 21 additions and 18 deletions
13
.github/workflows/build-image-latest-main.yml
vendored
13
.github/workflows/build-image-latest-main.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
13
.github/workflows/build-image-stable.yml
vendored
13
.github/workflows/build-image-stable.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
13
.github/workflows/build-image-testing.yml
vendored
13
.github/workflows/build-image-testing.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue