ci: scope permissions to jobs in publish-image workflow
This commit is contained in:
@@ -12,12 +12,6 @@ concurrency:
|
|||||||
group: publish-${{ github.workflow }}-${{ github.ref }}
|
group: publish-${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
id-token: write
|
|
||||||
attestations: write
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IMAGE_DESCRIPTION: Fizzy is Kanban as it should be. Not as it has been.
|
IMAGE_DESCRIPTION: Fizzy is Kanban as it should be. Not as it has been.
|
||||||
SOURCE_URL: https://github.com/${{ github.repository }}
|
SOURCE_URL: https://github.com/${{ github.repository }}
|
||||||
@@ -27,6 +21,11 @@ jobs:
|
|||||||
name: Build and push image (${{ matrix.arch }})
|
name: Build and push image (${{ matrix.arch }})
|
||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
id-token: write
|
||||||
|
attestations: write
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -113,6 +112,9 @@ jobs:
|
|||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
id-token: write
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|||||||
Reference in New Issue
Block a user