Skip to content

Commit

Permalink
Update workflow permissions avoid device-flow auth
Browse files Browse the repository at this point in the history
  • Loading branch information
sd109 committed Oct 31, 2024
1 parent f3d5544 commit 0dfd58a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-push-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,13 @@ jobs:
build_push_images:
name: Build and push images
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # needed for signing the images with GitHub OIDC Token
packages: write # required for pushing container images
security-events: write # required for pushing SARIF files
needs: changes
if: ${{ needs.changes.outputs.images == 'true' || github.ref_type == 'tag' }}
# if: ${{ needs.changes.outputs.images == 'true' || github.ref_type == 'tag' }}
strategy:
matrix:
include:
Expand Down

0 comments on commit 0dfd58a

Please sign in to comment.