Skip to content

Commit 56085f2

Browse files
Secret validation
1 parent cea0085 commit 56085f2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,23 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
Sandbox:
13+
sandbox:
14+
name: "Plan & Deploy Sandbox Environment"
1415
runs-on: ubuntu-latest
1516
environment: Sandbox
1617
steps:
1718
- name: Checkout
1819
uses: actions/checkout@main
1920

21+
- name: "Validate Repository Secrets"
22+
run: |
23+
[[ "${{ vars.DEPLOY_ROLE_ARN }}" -eq "" ]] echo "::error title=Repository Configuration Incomplete::This repository is missing a secret for DEPLOY_ROLE_ARN!"
24+
2025
- name: Configure AWS credentials
2126
uses: aws-actions/configure-aws-credentials@v1.7.0
2227
with:
2328
role-to-assume: ${{ vars.DEPLOY_ROLE_ARN }}
24-
role-session-name: Test-AWS-GHA-OIDC
29+
role-session-name: ${{ github.repository }}|${{ github.event_name }}|${{github.ref}}
2530
aws-region: ${{ vars.AWS_REGION }}
2631

2732
- name: Plan

0 commit comments

Comments
 (0)