Merge pull request #1709 from GSA-TTS/dependabot/npm_and_yarn/inspect… #364
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
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the action will run. Triggers the workflow on every commit. | |
on: | |
push: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
# Validate terraform (with the side-effect of installing the right | |
# version of terraform based on required_version constraints) | |
- name: validate | |
uses: dflook/terraform-validate@v1 | |
with: | |
path: terraform | |
# Check terraform files are formatted correctly (terraform fmt -check) | |
- name: fmt | |
uses: dflook/terraform-fmt-check@v1 | |
with: | |
path: terraform | |
# Runs terraform lint | |
- name: lint | |
uses: actionshub/terraform-lint@main | |
# Runs tfsec | |
- name: tfsec | |
uses: aquasecurity/[email protected] | |
with: | |
github_token: ${{ github.token }} | |
# Runs Checkov | |
- name: Run Checkov action | |
id: checkov | |
uses: bridgecrewio/checkov-action@master | |
with: | |
directory: terraform/ |