Skip to content

Commit

Permalink
mover permissions to action global
Browse files Browse the repository at this point in the history
  • Loading branch information
2xburnt committed Sep 25, 2024
1 parent 3a38e16 commit 4df2c54
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
id-token: write
contents: read
packages: write

jobs:
build:
name: "Build Images"
Expand All @@ -27,11 +32,6 @@ jobs:
platform: linux/arm64
runs-on: ${{ matrix.runner.selector }}

permissions:
id-token: write
contents: read
packages: write

steps:
- name: Check out code
uses: actions/checkout@v4
Expand Down Expand Up @@ -93,11 +93,6 @@ jobs:
needs: build
runs-on: ubuntu-latest

permissions:
id-token: write
contents: read
packages: write

steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand Down

0 comments on commit 4df2c54

Please sign in to comment.