Added DNS Wait condition and fixed Resource Lock #551
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: Continuous Integration | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
analyze: | |
name: Analyze the Terraform scripts | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 5 | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- id: clone_repository | |
name: Clone repository | |
# actions/[email protected] | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- id: setup_terraform | |
name: Setup Terraform CLI | |
# hashicorp/[email protected] | |
uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 | |
- id: run_terraform_init | |
name: Run Terraform init | |
run: terraform init | |
- id: run_terraform_fmt | |
name: Run Terraform format check | |
run: terraform fmt -check -recursive | |
- id: run_terraform_validate | |
name: Run Terraform validate check | |
run: terraform validate | |
- id: install_latest_trivy_version | |
uses: aquasecurity/[email protected] | |
with: | |
cache: true | |
version: v0.58.1 | |
- id: run_trivy_config | |
name: Run Trivy vulnerability scanner | |
uses: aquasecurity/[email protected] | |
with: | |
scan-type: config | |
trivy-config: trivy.yaml | |
ignore-unfixed: true | |
hide-progress: false | |
format: sarif | |
output: trivy.sarif | |
#TODO Remove this when fix is available for the error regarding the | |
# unknown state of some of the resources during plan phase | |
continue-on-error: true # Allows the job to continue even if this step fails | |
- id: run_sarif_upload | |
name: Upload Trivy SARIF results | |
# github/codeql-action/[email protected] | |
uses: github/codeql-action/upload-sarif@382a50a0284c0de445104889a9d6003acb4b3c1d | |
timeout-minutes: 1 | |
with: | |
sarif_file: trivy.sarif |