diff --git a/.github/workflows/terraform-analyse/action.yml b/.github/workflows/terraform-analyse/action.yml deleted file mode 100644 index 5badc72..0000000 --- a/.github/workflows/terraform-analyse/action.yml +++ /dev/null @@ -1,50 +0,0 @@ ---- - -name: 'Terraform Analyse' -description: 'analyse terraform code' -inputs: - tfdir: - description: 'Directory to scan' - required: true - default: '.' - mondoo_service_account: - description: 'Mondoo service account bas64 encoded' - required: true - default: '' -outputs: {} -runs: - using: "composite" - steps: - - name: mondoo terraform hcl scan - uses: mondoohq/actions/terraform-hcl@v11.0.0 - if: always() - env: - MONDOO_CONFIG_BASE64: ${{ inputs.mondoo_service_account }} - with: - path: ${{ inputs.tfdir }} - output: 'summary' - - - name: kics scan - uses: checkmarx/kics-github-action@v2 - if: always() - with: - path: ${{ inputs.tfdir }} - output_formats: "json" - - - name: trivy scan - uses: aquasecurity/trivy-action@master - if: always() - with: - scan-type: 'fs' - scan-ref: ${{ inputs.tfdir }} - scanners: 'vuln,misconfig' - format: 'table' - - - name: checkov scan - uses: bridgecrewio/checkov-action@v12 - if: always() - with: - directory: ${{ inputs.tfdir }} - output_format: cli,sarif - quiet: false - skip_path: 'policies' # incorrect hcl handling in checkov diff --git a/.github/workflows/tf-analyse.yml b/.github/workflows/tf-analyse.yml index 5c15514..126b26e 100644 --- a/.github/workflows/tf-analyse.yml +++ b/.github/workflows/tf-analyse.yml @@ -14,7 +14,6 @@ on: description: 'Mondoo Service Account' required: true jobs: - analyze_tf: runs-on: ubuntu-latest @@ -30,7 +29,7 @@ jobs: - name: run terraform anlysis if: ( steps.detect.outputs.all_changed_files != '' && always() ) || ( github.event_name == 'workflow_dispatch' && always() ) - uses: infralovers/.github/.github/workflows/terraform-analyse@main + uses: infralovers/terraform-analyse-action@main with: tfdir: ${{ inputs.tfdir }} mondoo_service_account: ${{ secrets.MONDOO_SERVICE_ACCOUNT }}