From 43e51284aa5b48742fcd5c1e05687d6fa80a3062 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 22 Apr 2025 11:38:37 -0700 Subject: [PATCH] tools: ignore test directory in CodeQL scans Scanning the test directory results in many false positives about hard-coded credentials. We want the code scan for user-exectuable code and possibly our tools, but not generally for tests. Ignore the test directory in CodeQL scans. A long list of false positives makes it harder to interpret the result of CodeQL runs. --- .github/workflows/codeql.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 115db2ef35c6e0..6031c1a552d329 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -7,6 +7,9 @@ on: permissions: contents: read +paths-to-ignore: + - test + jobs: analyze: name: Analyze