Skip to content

Commit

Permalink
Move token permissions to correct job
Browse files Browse the repository at this point in the history
  • Loading branch information
coro committed Dec 12, 2022
1 parent 5b60d84 commit 05c2ec9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ jobs:
build_operator:
runs-on: ubuntu-latest
needs: unit_integration_tests
# Add "id-token" with the intended permissions.
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -197,6 +193,10 @@ jobs:
container: us.gcr.io/cf-rabbitmq-for-k8s-bunny/rabbitmq-for-kubernetes-ci
if: ${{ github.event_name != 'pull_request' }}
concurrency: ci-bunny-1
# Add "id-token" with the intended permissions.
permissions:
contents: 'read'
id-token: 'write'
needs: build_operator
strategy:
matrix:
Expand Down Expand Up @@ -244,6 +244,10 @@ jobs:
container: us.gcr.io/cf-rabbitmq-for-k8s-bunny/rabbitmq-for-kubernetes-ci
if: ${{ github.event_name != 'pull_request' }}
concurrency: ci-bunny-2
# Add "id-token" with the intended permissions.
permissions:
contents: 'read'
id-token: 'write'
needs: build_operator
steps:
- name: Install Go
Expand Down

0 comments on commit 05c2ec9

Please sign in to comment.