Skip to content

Commit

Permalink
chore: validate that AWS key-pair secrets are set
Browse files Browse the repository at this point in the history
  • Loading branch information
lpm0073 committed Nov 17, 2023
1 parent 56feb8c commit aa65b3f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/actions/tests/terraform/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,30 @@ runs:
id: checkout
uses: actions/checkout@v4

- name: Verify AWS_ACCESS_KEY_ID
shell: bash
run: |
if [[ -z "${{ secrets.AWS_ACCESS_KEY_ID }}" ]]; then
echo "AWS_ACCESS_KEY_ID is not set" >&2
exit 1
fi
- name: Verify AWS_SECRET_ACCESS_KEY
shell: bash
run: |
if [[ -z "${{ secrets.AWS_SECRET_ACCESS_KEY }}" ]]; then
echo "AWS_SECRET_ACCESS_KEY is not set" >&2
exit 1
fi
- name: Verify AWS_REGION
shell: bash
run: |
if [[ -z "${{ secrets.AWS_REGION }}" ]]; then
echo "AWS_REGION is not set" >&2
exit 1
fi
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down

0 comments on commit aa65b3f

Please sign in to comment.