Update auditree checks #82
Workflow file for this run
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: Run Terraform plan in staging | |
on: | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
terraform: | |
name: Terraform plan | |
runs-on: ubuntu-latest | |
environment: staging | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TERRAFORM_PRE_RUN: | | |
apt-get update | |
apt-get install -y zip | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: terraform validate | |
uses: dflook/terraform-validate@v1 | |
with: | |
path: terraform/staging | |
- name: terraform fmt | |
uses: dflook/terraform-fmt-check@v1 | |
with: | |
path: terraform/staging | |
- name: terraform plan | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
uses: dflook/terraform-plan@v1 | |
env: | |
TF_VAR_cf_user: ${{ secrets.CF_USERNAME }} | |
TF_VAR_cf_password: ${{ secrets.CF_PASSWORD }} | |
with: | |
path: terraform/staging | |
backend_config: > | |
access_key=${{ secrets.TERRAFORM_STATE_ACCESS_KEY }} | |
secret_key=${{ secrets.TERRAFORM_STATE_SECRET_ACCESS_KEY }} |