Skip to content

Commit

Permalink
Adding permission
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Baker <[email protected]>
  • Loading branch information
PeterBaker0 committed Aug 2, 2024
1 parent 4a5759e commit fb938ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy-aws-cdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- bss-214-github-action-deploy

permissions:
id-token: write
contents: read

jobs:
cdk-deploy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -39,9 +43,6 @@ jobs:
echo "Environment: ${{ vars.CDK_DEPLOY_ENVIRONMENT }}"
# You can now use these outputs in subsequent steps for AWS configuration
- uses: aws-actions/configure-aws-credentials@v2
env:
AWS_REGION: ${{ steps.faims-config-setup.outputs.aws-region }}
AWS_ACCOUNT: ${{ steps.faims-config-setup.outputs.aws-account }}
with:
role-to-assume: ${{ vars.CDK_DEPLOY_GA_ROLE_ARN }}
aws-region: ${{ steps.faims-config-setup.outputs.aws-region }}
Expand Down

0 comments on commit fb938ff

Please sign in to comment.