Skip to content

testing pipeline

testing pipeline #8

Workflow file for this run

name: Terraform Plan & Apply
on:
push:
branches: [main]
paths:
- "./infra"
env:
AWS_REGION: eu-west-2
jobs:
terraform:

Check failure on line 14 in .github/workflows/deploy-infra.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-infra.yml

Invalid workflow file

You have an error in your yaml syntax on line 14
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: eu-west-2
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3.1.2
with:
terraform_version: 1.11.1
- name: Terraform Init
working-directory: "./infra"
run: terraform init
- name: Checkov
uses: bridgecrewio/checkov-action@master
with:
framework: terraform
soft_fail: true
output_format: cli,sarif
output_file_path: checkov-results-terraform.sarif
- name: Upload Checkov scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
if: success() || failure()
with:
sarif_file: 'checkov-results-terraform.sarif'
wait-for-processing: true
- name: Terraform Plan
working-directory: "./infra"
run: terraform plan -out=tfplan -var="environment=dev" -var="aws_region=eu-west-2}"
- name: Terraform Apply
working-directory: "./infra"
run: terraform apply -auto-approve tfplan