Update Terraform aws to v5.89.0 #357
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. | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# 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@v4 | |
# Runs a set of commands using the runners shell | |
- name: Testing the lint standards for GCP standard3tier (ignoring errors)... | |
run: | | |
echo '(cd samples/GCP/templates/standard3tier/ && make)' | |
echo '>>Ignore header errors<<' | |
(cd samples/GCP/templates/standard3tier/ && make -i docker_test_lint docker_generate_docs) | |
- name: Testing the lint standards for GCP bastionhost (ignoring errors)... | |
run: | | |
echo '(cd samples/GCP/templates/bastionhost/ && make)' | |
echo '>>Ignore module errors and header errors<<' | |
(cd samples/GCP/templates/bastionhost/ && make -i docker_test_lint docker_generate_docs) | |
- name: Testing the lint standards for GCP vpn-classic (ignoring errors)... | |
run: | | |
echo '(cd samples/GCP/templates/vpn-classic/ && make)' | |
echo '>>Ignore module errors and header errors<<' | |
(cd samples/GCP/templates/vpn-classic/ && make -i docker_test_lint docker_generate_docs) | |
- name: Testing the lint standards for GCP vpn-hybrid (ignoring errors)... | |
run: | | |
echo '(cd samples/GCP/templates/vpn-hybrid/ && make)' | |
echo '>>Ignore module errors and header errors<<' | |
(cd samples/GCP/templates/vpn-hybrid/ && make -i docker_test_lint docker_generate_docs) | |
- name: Testing the lint standards for GCP kubernetes (ignoring errors)... | |
run: | | |
echo '(cd samples/GCP/templates/kubernetes/ && make)' | |
echo '>>Ignore module errors and header errors<<' | |
(cd samples/GCP/templates/kubernetes/ && make -i docker_test_lint docker_generate_docs) | |
- name: Testing the lint standards for AZ bastionhost (ignoring errors)... | |
run: | | |
echo '(cd samples/Azure/templates/bastionhost/ && make)' | |
echo '>>Ignore module errors and header errors<<' | |
(cd samples/Azure/templates/bastionhost/ && make -i docker_test_lint docker_generate_docs) | |
- name: Testing the lint standards for AZ kubernetes (ignoring errors)... | |
run: | | |
echo '(cd samples/Azure/templates/kubernetes/ && make)' | |
echo '>>Ignore module errors and header errors<<' | |
(cd samples/Azure/templates/kubernetes/ && make -i docker_test_lint docker_generate_docs) | |
- name: Testing the lint standards for AZ vpn-classic (ignoring errors)... | |
run: | | |
echo '(cd samples/Azure/templates/vpn-classic/ && make)' | |
echo '>>Ignore module errors and header errors<<' | |
(cd samples/Azure/templates/vpn-classic/ && make -i docker_test_lint docker_generate_docs) | |
- name: Testing the lint standards for AZ vpn-hybrid (ignoring errors)... | |
run: | | |
echo '(cd samples/Azure/templates/vpn-hybrid/ && make)' | |
echo '>>Ignore module errors and header errors<<' | |
(cd samples/Azure/templates/vpn-hybrid/ && make -i docker_test_lint docker_generate_docs) | |
- name: Testing the lint standards for AZ standard3tier (ignoring errors)... | |
run: | | |
echo '(cd samples/Azure/templates/standard3tier/ && make)' | |
echo '>>Ignore module errors and header errors<<' | |
(cd samples/Azure/templates/standard3tier/ && make -i docker_test_lint docker_generate_docs) | |
- name: Security scan (ignoring errors)... | |
run: | | |
echo 'Running terrascan to show security issues (ignore error codes)...' | |
(cd samples && (docker run --rm -v "$(pwd):/iac" -w /iac accurics/terrascan scan || true)) | |
(docker run --rm -v "$(pwd):/iac" -w /iac accurics/terrascan scan samples -o junit-xml > security-scan.xml || true) | |
(docker run --rm -v "$(pwd):/iac" -w /iac accurics/terrascan scan samples > security-scan.txt || true) | |
- name: Publish Unit Test Results... | |
uses: EnricoMi/publish-unit-test-result-action/composite@v2 | |
if: always() | |
with: | |
files: security-scan.xml | |
compare_to_earlier_commit: false | |
- name: Upload Test Results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Unit Test Results | |
path: | | |
security-scan.xml | |
security-scan.txt | |
scanarm: | |
name: Scan ARM files | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
# Runs a set of commands using the runners shell | |
- name: Testing ARM templates(ignoring errors)... | |
run: | | |
echo '(samples/Azure/templates/arm_deployments/templates/)' | |
echo '>>Ignore header errors<<' | |
(cd samples/Azure/templates/arm_deployments/templates/ && docker run -t --rm -v "$(pwd):/iac" -w /iac ghcr.io/tpayne/terraform-examples/terraform-tools:latest /terraform-tools/checker.sh arm /iac/) |