diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 8c6d99136..42e7cf1ab 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -54,11 +54,10 @@ jobs: tar -zxvf terraform_docs.tar.gz terraform-docs chmod +x terraform-docs mv terraform-docs /usr/local/bin/ - - name: Setup tfsec + - name: Setup trivy run: | - curl --output tfsec https://github.com/aquasecurity/tfsec/releases/download/${{env.TFSEC_VERSION}}/tfsec-linux-amd64 - chmod +x tfsec - mv tfsec /usr/local/bin/ + curl --output trivy https://github.com/aquasecurity/trivy/releases/download/v${{env.TRIVY_VERSION}}/trivy_{{env.TRIVY_VERSION}}_Linux-64bit.deb + sudo dpkg -i trivy.deb - name: Pre-commit checks uses: pre-commit/action@v3.0.1 - name: pre-commit-ci-lite diff --git a/renovate.json b/renovate.json index 86c870091..9595b3d2d 100644 --- a/renovate.json +++ b/renovate.json @@ -28,9 +28,9 @@ { "customType": "regex", "fileMatch": ".github/workflows/pre-commit.yml", - "depNameTemplate": "aquasecurity/tfsec", + "depNameTemplate": "aquasecurity/trivy", "matchStrings": [ - "TFSEC_VERSION=\"(?.*?)\"" + "TRIVY_VERSION=\"(?.*?)\"" ], "datasourceTemplate": "github-releases" },