Commit 71adbea
committed
codeql: Enable test file extraction in CI workflow
Configure the CodeQL workflow to include test files during database
creation by setting CODEQL_EXTRACTOR_GO_OPTION_EXTRACT_TESTS=true.
This allows the unclosed-resources query to detect leaks in test files,
such as the missing Close() calls we found in files like
internal/archive/archive_test.go.
Without this setting, the Go extractor excludes *_test.go files by
default, limiting the query's effectiveness.
Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>1 parent 86ed0d5 commit 71adbea
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
0 commit comments