adding tfsec
Some checks failed
build / tfsec (push) Failing after 1m43s

This commit is contained in:
hgn
2025-01-17 00:45:47 +01:00
parent a89000a6cc
commit 187525f3ed

View File

@@ -6,33 +6,12 @@ on:
- devpod
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-20.04
tfsec:
name: tfsec
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy scanner
uses: aquasecurity/trivy-action@0.28.0
with:
scan-type: config
hide-progress: true
output: trivy.txt
exit-code: '1'
severity: 'CRITICAL,HIGH'
github-pat: ${{ secret.PLT_GIT }}
- name: Publish Trivy Output to Summary
run: |
if [[ -s trivy.txt ]]; then
{
echo "### Security Output"
echo "<details><summary>Click to expand</summary>"
echo ""
echo '```terraform'
cat trivy.txt
echo '```'
echo "</details>"
} >> $GITHUB_STEP_SUMMARY
fi
- name: Clone repo
uses: actions/checkout@master
- name: tfsec
uses: aquasecurity/tfsec-action@v1.0.0