From b971bd198c0097a92876ed92a0ed1843eeaa5e0a Mon Sep 17 00:00:00 2001 From: Jamie Wilkinson Date: Mon, 24 Jun 2024 14:24:04 +0200 Subject: [PATCH] ci: Ignore generated files in gosec scans. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 966fd60d0..d3718af7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,7 @@ jobs: - uses: securego/gosec@master with: # we let the report trigger content trigger a failure using the GitHub Security features. - args: '-no-fail -fmt sarif -out results.sarif -tags fuzz ./...' + args: '-no-fail -exclude-generated -fmt sarif -out results.sarif -tags fuzz ./...' - uses: github/codeql-action/upload-sarif@v3 with: # Path to SARIF file relative to the root of the repository