chore: deprecate request lib #307
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" | |
on: | |
pull_request: | |
push: | |
branches: | |
- staging | |
- 'v*' | |
env: | |
aws_account: "887069801155" | |
aws_gha_role: "gha-tf-plan-analyzer-org-gha" | |
jobs: | |
terraform: | |
name: Terraform | |
runs-on: ubuntu-latest | |
env: | |
tf_version: 1.6.0 | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Check Out | |
uses: actions/checkout@v4 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: "arn:aws:iam::${{ env.aws_account }}:role/${{ env.aws_gha_role }}" | |
role-session-name: ${{ github.sha }} | |
aws-region: us-west-2 | |
- name: Terraform Setup | |
uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_version: ${{ env.tf_version }} | |
- name: Terraform Init | |
run: terraform init | |
working-directory: __tests__ | |
- name: Terraform Plan | |
run: terraform plan -out test-plan.tfplan | |
working-directory: __tests__ | |
- name: Analyze Terraform Plan | |
uses: ./ | |
with: | |
working-directory: ./__tests__ | |
terraform-plan-file: test-plan.tfplan | |
divvycloud-username: ${{ secrets.DIVVYCLOUD_USERNAME }} | |
divvycloud-password: ${{ secrets.DIVVYCLOUD_PASSWORD}} | |
tofu: | |
name: OpenTofu | |
runs-on: ubuntu-latest | |
env: | |
tf_version: 1.6.0 | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Check Out | |
uses: actions/checkout@v4 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: "arn:aws:iam::${{ env.aws_account }}:role/${{ env.aws_gha_role }}" | |
role-session-name: ${{ github.sha }} | |
aws-region: us-west-2 | |
- name: Tofu Setup | |
uses: opentofu/setup-opentofu@v1 | |
with: | |
tofu_version: 1.6.0 | |
- name: Tofu Init | |
run: tofu init | |
working-directory: __tests__ | |
- name: Tofu Plan | |
run: tofu plan -out test-plan.tfplan | |
working-directory: __tests__ | |
- name: Analyze Tofu Plan | |
uses: ./ | |
with: | |
working-directory: ./__tests__ | |
terraform-plan-file: test-plan.tfplan | |
divvycloud-username: ${{ secrets.DIVVYCLOUD_USERNAME }} | |
divvycloud-password: ${{ secrets.DIVVYCLOUD_PASSWORD}} |