Skip to content

Commit f1aa4f4

Browse files
committed
Explain why we ignore extra baseline files options
1 parent 9a55d5b commit f1aa4f4

10 files changed

+30
-0
lines changed

lib/analyze-action-post.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/autobuild-action.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action-post.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/resolve-environment-action.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/setup-codeql-action.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-lib.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-sarif-action.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/codeql.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,9 @@ async function getCodeQLForCmd(
642642
"--extractor-include-aliases",
643643
...extraArgs,
644644
...getExtraOptionsFromEnv(["database", "init"], {
645+
// Some user configs specify `--no-calculate-baseline` as an additional
646+
// argument to `codeql database init`. Therefore ignore the baseline file
647+
// options here to avoid specifying the same argument twice and erroring.
645648
ignoringOptions: ["--overwrite", ...baselineFilesOptions],
646649
}),
647650
],

0 commit comments

Comments
 (0)