From a51857096f78c1142f953c3f54351c668daf93a0 Mon Sep 17 00:00:00 2001 From: nvminhtue Date: Tue, 5 Mar 2024 10:20:49 +0700 Subject: [PATCH] [#227] Update docs --- .../wiki/{Trivy-local-running.md => Running-trivy-locally.md} | 1 + .github/wiki/_Sidebar.md | 2 +- .github/workflows/test-generated-project.yml | 4 ++-- .../addons/versionControl/github/.github/workflows/lint.yml | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) rename .github/wiki/{Trivy-local-running.md => Running-trivy-locally.md} (99%) diff --git a/.github/wiki/Trivy-local-running.md b/.github/wiki/Running-trivy-locally.md similarity index 99% rename from .github/wiki/Trivy-local-running.md rename to .github/wiki/Running-trivy-locally.md index 28bdd0ca..6168a30f 100644 --- a/.github/wiki/Trivy-local-running.md +++ b/.github/wiki/Running-trivy-locally.md @@ -3,6 +3,7 @@ This project is using Trivy as a vulnerability scanner to replace the role of `t 2. Access to more integrations with tools and services through the rich ecosystem around Trivy. ## Trivy Local Scan + ```bash # Project root directory trivy config . diff --git a/.github/wiki/_Sidebar.md b/.github/wiki/_Sidebar.md index 59692145..a7754aa0 100644 --- a/.github/wiki/_Sidebar.md +++ b/.github/wiki/_Sidebar.md @@ -15,4 +15,4 @@ - [[Testing]] - [[Modify the Infrastructure Diagram | Modify infra diagram]] - [[Publishing]] -- [[Trivy Local Running]] +- [[Running Trivy Locally]] diff --git a/.github/workflows/test-generated-project.yml b/.github/workflows/test-generated-project.yml index 433eca58..5ef83017 100644 --- a/.github/workflows/test-generated-project.yml +++ b/.github/workflows/test-generated-project.yml @@ -39,12 +39,12 @@ jobs: - name: Generate project run: . ./scripts/generateAdvancedAWS.sh - - name: Install dependencies in .tool-versions + - name: Install dependencies from .tool-versions uses: asdf-vm/actions/install@v2 - name: Run Terraform format run: terraform fmt -recursive -check - - name: Run trivy linter + - name: Run trivy scanner working-directory: aws-advanced-test run: trivy config . diff --git a/templates/addons/versionControl/github/.github/workflows/lint.yml b/templates/addons/versionControl/github/.github/workflows/lint.yml index 6a6cf531..80b67ebe 100644 --- a/templates/addons/versionControl/github/.github/workflows/lint.yml +++ b/templates/addons/versionControl/github/.github/workflows/lint.yml @@ -21,11 +21,11 @@ jobs: with: ref: ${{ github.head_ref }} - - name: Install dependencies in .tool-versions + - name: Install dependencies from .tool-versions uses: asdf-vm/actions/install@v2 - name: Run Terraform format run: terraform fmt -recursive -check - - name: Run trivy linter + - name: Run trivy scanner run: trivy config .