feat: add vars for kms key policy #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test-component | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
branches: | |
- main | |
paths: | |
- "**.tf" | |
- "**.go" | |
- ".github/**" | |
permissions: | |
id-token: write | |
contents: read | |
defaults: | |
run: | |
# We need -e -o pipefail for consistency with GitHub Actions' default behavior | |
shell: bash -e -o pipefail {0} | |
jobs: | |
terraform-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: ${{ secrets.AWS_COMMERCIAL_ROLE_TO_ASSUME }} | |
role-session-name: ${{ github.event.client_payload.pull_request.head.sha || github.sha }} | |
aws-region: us-east-1 | |
# 21600 seconds == 6 hours | |
# 1800 seconds == 30 minutes | |
role-duration-seconds: 1800 | |
- name: Run Shared Test workfow | |
uses: defenseunicorns/uds-common-workflows/.github/actions/terraform-test@main | |
with: | |
test_retry: 1 |