Skip to content

Commit 72ef5f0

Browse files
committed
Safeguards
1 parent 4fa8e2e commit 72ef5f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ jobs:
4343
- name: Validate the configuration
4444
run: terraform validate
4545
- name: Configure AWS credentials
46+
if: github.event_name == 'push' && github.repository == 'unfunco/terraform-aws-oidc-github'
4647
uses: aws-actions/configure-aws-credentials@v4
4748
with:
4849
aws-region: ${{ vars.AWS_REGION }}
4950
role-session-name: OIDCGitHubActionsTerraformTest${{ github.run_id }}
5051
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github
5152
- name: Run unit tests
53+
if: github.event_name == 'push' && github.repository == 'unfunco/terraform-aws-oidc-github'
5254
run: terraform test
5355

5456
release:

0 commit comments

Comments
 (0)