Skip to content

Commit

Permalink
Replace tfsec with trivy on github workflows and renovate.json
Browse files Browse the repository at this point in the history
because tfsec is no longer updated
Issue: #1764
  • Loading branch information
za committed Dec 16, 2024
1 parent 6ab0a60 commit 7610711
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- name: pre-commit-ci-lite
Expand Down
4 changes: 2 additions & 2 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
{
"customType": "regex",
"fileMatch": ".github/workflows/pre-commit.yml",
"depNameTemplate": "aquasecurity/tfsec",
"depNameTemplate": "aquasecurity/trivy",
"matchStrings": [
"TFSEC_VERSION=\"(?<currentValue>.*?)\""
"TRIVY_VERSION=\"(?<currentValue>.*?)\""
],
"datasourceTemplate": "github-releases"
},
Expand Down

0 comments on commit 7610711

Please sign in to comment.