Skip to content

Commit

Permalink
Refactored action permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameronsplaze committed Dec 16, 2024
1 parent d222893 commit bacc64e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/main-pipeline-cdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ on:

env:
EXAMPLES_PATH: ./Examples # No trailing slash plz!
# You can declare this for specific jobs too, but almost all here
# need this anyways. The one that doesn't, doesn't use external actions..
permissions:
id-token: write
contents: read

jobs:
setup-matrix:
Expand Down Expand Up @@ -102,9 +107,6 @@ jobs:
needs:
- setup-matrix
- cdk-synth
permissions:
id-token: write
contents: read
steps:
## Moved this check away from the job-level 'if', so it actually fails if you're
# not on main. Failure is easier to see than a skipped job.
Expand Down Expand Up @@ -151,9 +153,6 @@ jobs:
matrix:
deploy-config: ${{ fromJson(needs.setup-matrix.outputs.deploy-matrix) }}
environment: "${{ matrix.deploy-config }}"
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit bacc64e

Please sign in to comment.