Skip to content

Commit

Permalink
missing permission & formatting (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbass authored Jun 7, 2024
1 parent 75392d1 commit 9c76e11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
types: [published]

permissions:
id-token: write # required for OIDC connectiong to AWS
contents: read

jobs:
Expand Down Expand Up @@ -119,7 +120,6 @@ jobs:
echo cloudfront_id=$output >> $GITHUB_OUTPUT
deploy-frontend:
name: Release to Production
needs: deploy-iac
if: startsWith(github.ref_name, 'r-') # the prefix we have added to the tag
environment: production
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
- main

permissions:
id-token: write # This is required for requesting the JWT
contents: write # This is required to create a release
id-token: write # required for OIDC connectiong to AWS
contents: write # This is required to create a release

jobs:
detect-changes:
Expand Down Expand Up @@ -54,6 +54,7 @@ jobs:
TF_VAR_environment: ${{ vars.ENV_SHORT_NAME }}
TF_VAR_name_prefix: "tb-${{ vars.PROJECT_SHORT_NAME }}-${{ vars.ENV_SHORT_NAME }}"
TF_VAR_frontend_url: ${{ vars.FRONTEND_URL }}

steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -120,7 +121,6 @@ jobs:
needs:
- detect-changes
- deploy-iac

if: |
always() &&
(needs.deploy-iac.result == 'success' || needs.deploy-iac.result == 'skipped') &&
Expand All @@ -132,6 +132,7 @@ jobs:
TF_VAR_environment: ${{ vars.ENV_SHORT_NAME }}
TF_VAR_name_prefix: "tb-${{ vars.PROJECT_SHORT_NAME }}-${{ vars.ENV_SHORT_NAME }}"
TF_VAR_frontend_url: ${{ vars.FRONTEND_URL }}

steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -190,7 +191,6 @@ jobs:
needs:
- detect-changes
- deploy-iac

if: |
always() &&
(needs.deploy-iac.result == 'success' || needs.deploy-iac.result == 'skipped') &&
Expand All @@ -212,6 +212,7 @@ jobs:
TF_VAR_zoom_callback: ${{ vars.ZOOM_CALLBACK }}
TF_VAR_zoom_secret: ${{ vars.ZOOM_SECRET }}
TF_VAR_sentry_dsn: ${{ vars.SENTRY_DSN }}

steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -273,14 +274,13 @@ jobs:
- detect-changes
- deploy-backend
- deploy-frontend

if: |
always() &&
needs.deploy-backend.result == 'success' &&
needs.deploy-frontend.result == 'success'
environment: production
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 9c76e11

Please sign in to comment.