Skip to content

Commit e5939aa

Browse files
committed
chore: test with id-token permissions
1 parent 1db0c0f commit e5939aa

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ concurrency:
1717
group: ${{ github.workflow }}-${{ github.ref }}
1818
cancel-in-progress: true
1919

20-
permissions:
21-
contents: write
22-
packages: write
23-
2420
jobs:
2521
# The build job builds the Docker image for each platform specified in the matrix.
2622
build:
@@ -35,8 +31,7 @@ jobs:
3531
contents: write
3632
packages: write
3733
attestations: write
38-
checks: write
39-
actions: write
34+
id-token: write
4035

4136
runs-on: ${{ matrix.platform == 'linux/amd64' && 'ubuntu-24.04' || matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' }}
4237

@@ -112,9 +107,10 @@ jobs:
112107
runs-on: ubuntu-latest
113108

114109
permissions:
115-
attestations: write
116-
contents: read
110+
contents: write
117111
packages: write
112+
attestations: write
113+
id-token: write
118114

119115
needs:
120116
- build

0 commit comments

Comments
 (0)