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 - devpod
pull_request: pull_request:
jobs: jobs:
build: tfsec:
name: Build name: tfsec
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy scanner steps:
uses: aquasecurity/trivy-action@0.28.0 - name: Clone repo
with: uses: actions/checkout@master
scan-type: config - name: tfsec
hide-progress: true uses: aquasecurity/tfsec-action@v1.0.0
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