Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
434df8e
Update checks to use `analysis-kinds` instead of `quality-queries`
mbg Aug 28, 2025
85a4853
Add utility function to check if code scanning is enabled
mbg Aug 28, 2025
ca7dd4a
Move `UploadTarget` definitions to `analyses.ts`
mbg Aug 28, 2025
0162708
Rename `UploadTarget` to `AnalysisConfig`
mbg Aug 28, 2025
cb8f28f
Add `kind` property to `AnalysisConfig` and documentation
mbg Aug 28, 2025
e4ffe6f
Only specify queries for `run-queries` if both analysis kinds are ena…
mbg Aug 28, 2025
ff57bbf
Handle different permutations of analysis kinds in `analyze` action
mbg Aug 28, 2025
6d2d204
Add note for `getPerQueryAlertCounts`
mbg Aug 28, 2025
04bb074
Add `sarifExtension` field to `AnalysisConfig`
mbg Sep 1, 2025
8ea50b8
Add and use helpers for determining analysis config the DB is initial…
mbg Sep 1, 2025
244e04c
Add test with `analysisKindsInput: code-quality`
mbg Sep 1, 2025
811aef8
Move `isDefined` from `start-proxy` to `util`
mbg Sep 1, 2025
01fe6a1
Override query configuration for Code Quality only analyses
mbg Sep 1, 2025
86275f6
Fix `addSarifExtension` and add tests
mbg Sep 1, 2025
7baedbc
Check if Code Scanning is enabled before uploading Code Scanning SARIF
mbg Sep 1, 2025
3ee9287
Update condition and comment for CQ-only config
mbg Sep 2, 2025
51d74ac
Remove default arguments from `uploadSpecifiedFiles` and `validateUni…
mbg Sep 2, 2025
f4fca70
Do not mutate `originalUserInput`
mbg Sep 2, 2025
ae2df70
Make code that builds the list of queries for `run-queries` more robu…
mbg Sep 4, 2025
d08e9a2
Make conditions for `interpret-results` more robust
mbg Sep 4, 2025
38f1a70
Add `runInterpretResultsFor` to de-duplicate code for `interpret-resu…
mbg Sep 4, 2025
6d0bcea
Matrix over `analysis-kinds` in `quality-queries` check
mbg Sep 5, 2025
5d822f1
Rename `getDbAnalysisKind` and `getDbAnalysisConfig`
mbg Sep 5, 2025
918e792
Throw an error if query customisations are enabled for a `code-qualit…
mbg Sep 5, 2025
e75b5d3
Fix: Include `matrix.analysis-kinds` in artifact names
mbg Sep 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test with analysisKindsInput: code-quality
  • Loading branch information
mbg committed Sep 4, 2025
commit 244e04cc4a97a920e5fa5c217495842320fc6381
41 changes: 41 additions & 0 deletions src/config-utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,47 @@ test("load empty config", async (t) => {
});
});

test("load code quality config", async (t) => {
return await withTmpDir(async (tempDir) => {
const logger = getRunnerLogger(true);
const languages = "actions";

const codeql = createStubCodeQL({
async betterResolveLanguages() {
return {
extractors: {
actions: [{ extractor_root: "" }],
},
};
},
});

const config = await configUtils.initConfig(
createTestInitConfigInputs({
analysisKindsInput: "code-quality",
languagesInput: languages,
repository: { owner: "github", repo: "example" },
tempDir,
codeql,
logger,
}),
);

t.deepEqual(
config,
await configUtils.getDefaultConfig(
createTestInitConfigInputs({
analysisKindsInput: "code-quality",
languagesInput: languages,
tempDir,
codeql,
logger,
}),
),
);
});
});

test("loading config saves config", async (t) => {
return await withTmpDir(async (tempDir) => {
const logger = getRunnerLogger(true);
Expand Down