diff --git a/.gitea/workflows/security.yml b/.gitea/workflows/security.yml index fbf70d8..f4678a9 100644 --- a/.gitea/workflows/security.yml +++ b/.gitea/workflows/security.yml @@ -67,9 +67,11 @@ jobs: sudo chmod +x /usr/local/bin/gitleaks gitleaks version + # We remove the Trivy cache to avoid false positives - name: Run Gitleaks secret scan run: | - gitleaks detect --source ./src --report-path gitleaks-results.json --report-format json --no-git + rm -rf .cache/trivy + gitleaks detect --source . --report-path gitleaks-results.json --report-format json --no-git - name: Display Gitleaks scan results if: always()