Skip to content

Commit 0dfd58a

Browse files
committed
Update workflow permissions avoid device-flow auth
1 parent f3d5544 commit 0dfd58a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build-push-artifacts.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,13 @@ jobs:
3434
build_push_images:
3535
name: Build and push images
3636
runs-on: ubuntu-latest
37+
permissions:
38+
contents: read
39+
id-token: write # needed for signing the images with GitHub OIDC Token
40+
packages: write # required for pushing container images
41+
security-events: write # required for pushing SARIF files
3742
needs: changes
38-
if: ${{ needs.changes.outputs.images == 'true' || github.ref_type == 'tag' }}
43+
# if: ${{ needs.changes.outputs.images == 'true' || github.ref_type == 'tag' }}
3944
strategy:
4045
matrix:
4146
include:

0 commit comments

Comments
 (0)