Content-Length: 530586 | pFad | http://github.com/github/codeql-action/pull/2977/commits/9022c7382c21c90e043270dea5d3f1120cbef6c8

A5 Merge main into releases/v3 by github-actions[bot] · Pull Request #2977 · github/codeql-action · GitHub
Skip to content

Merge main into releases/v3 #2977

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 65 commits into from
Jul 21, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
83de9b0
Update supported GitHub Enterprise Server versions
github-actions[bot] Jun 25, 2025
e9938e3
Check that proxy configurations are an array
mbg Jun 27, 2025
ca0540d
Check that individual proxy configurations are objects
mbg Jun 27, 2025
6b83dc3
Check for `null` in addition to `undefined`; extend tests accordingly
mbg Jun 27, 2025
9281048
Include `goproxy_server` in configuration filtering tests
mbg Jun 27, 2025
6881d2c
Update changelog and version after v3.29.2
github-actions[bot] Jun 30, 2025
144d3b8
Update checked-in dependencies
github-actions[bot] Jun 30, 2025
dcc1a66
Merge pull request #2958 from github/mergeback/v3.29.2-to-main-181d5eef
mbg Jun 30, 2025
612df8d
Remove support for combining SARIF runs with non-unique categories
koesie10 Jul 1, 2025
33f8489
Merge pull request #2959 from github/koesie10/remove-combine-runs
koesie10 Jul 2, 2025
b694213
Merge pull request #2956 from github/mbg/start-proxy/validation-impro…
mbg Jul 3, 2025
9022c73
Add AugmentationProperties.overlayDatabaseMode
cklin Jul 3, 2025
ee8a8c4
config-utils: populate getOverlayDatabaseMode()
cklin Apr 18, 2025
a336faa
databaseInitCluster: use overlayDatabaseMode from config
cklin Apr 21, 2025
60a2a7d
Add isAnalyzingPullRequest()
cklin Apr 21, 2025
da758dc
Add Feature.OverlayAnalysis
cklin Apr 17, 2025
93e8729
getOverlayDatabaseMode: use Feature.OverlayAnalysis
cklin Jul 1, 2025
b442537
Limit OverlayAnalysis to internal repos
cklin Jul 3, 2025
d42ce71
Add AugmentationProperties.useOverlayDatabaseCaching
cklin Apr 23, 2025
6ca06f4
Upload overlay-base database to actions cache
cklin Jul 1, 2025
b95402d
Extract checkOverlayBaseDatabase()
cklin Jun 6, 2025
2fc04c8
Download overlay-base database from actions cache
cklin Jun 17, 2025
42835b3
Override cleanup-level for overlay-base database
cklin Jun 20, 2025
6a51e63
Add "overlay" to SARIF incrementalMode run property
cklin Jun 20, 2025
aafbeb2
Unconditionally disable combining SARIF files for GHES 3.18
koesie10 Jul 4, 2025
8c5122e
Add getPullRequestBranches() tests
cklin Jul 7, 2025
95a1b7e
Add getOverlayDatabaseMode() tests
cklin Jul 3, 2025
ec836d6
build: refresh js files
cklin Jul 7, 2025
624d0bc
Merge pull request #2945 from github/cklin/overlay-analysis
cklin Jul 7, 2025
f53ec7c
Merge pull request #2961 from github/koesie10/disable-combine-sarif-f…
koesie10 Jul 8, 2025
f4358b3
Extract loadUserConfig()
cklin Jul 9, 2025
4cd7a72
Remove loadConfig()
cklin Jul 9, 2025
fe7205c
Move getOverlayDatabaseMode() call into initConfig()
cklin Jul 9, 2025
64fce58
Use exclude-from-incremental also for overlay analysis
cklin Jul 9, 2025
4bdb7fe
Overlay database mode tests: list features
cklin Jul 9, 2025
55cb6b8
Extract isOverlayAnalysisFeatureEnabled()
cklin Jul 10, 2025
9f70a5f
Overlay: define language-specific features
cklin Jul 10, 2025
d799ff5
Overlay: check per-language features
cklin Jul 10, 2025
fb77176
Extract generateCodeScanningConfig()
cklin Jul 9, 2025
90d7727
Overlay: check code-scanning features
cklin Jul 10, 2025
b37e7e2
Move initializeFeatures() to testing-utils
cklin Jul 11, 2025
59d67fc
Fix parsing of GHES pre-release versions
koesie10 Jul 14, 2025
4e20239
Merge pull request #2951 from github/update-supported-enterprise-serv…
mbg Jul 14, 2025
c6a6c14
Move comment to JSDoc
koesie10 Jul 14, 2025
6f936b5
Merge pull request #2969 from github/koesie10/fix-ghes-version-parsing
koesie10 Jul 14, 2025
0c2ac60
Bump the npm group across 1 directory with 7 updates
dependabot[bot] Jul 7, 2025
bbf184b
Update ava
aibaars Jul 14, 2025
ca53360
Fix tests
aibaars Jul 14, 2025
0b8d278
Run: npx update-browserslist-db@latest
aibaars Jul 14, 2025
15605b1
Make eslint happy
aibaars Jul 14, 2025
37e3c31
Update checked-in dependencies
github-actions[bot] Jul 15, 2025
38fdaed
npm run build
aibaars Jul 14, 2025
0d17ea4
Merge pull request #2963 from github/dependabot/npm_and_yarn/npm-d16e…
aibaars Jul 15, 2025
e30db30
Ignore pre-release parts when comparing GHES versions
koesie10 Jul 15, 2025
3eaefb4
Replicate "too many feature flags" error in test
cklin Jul 16, 2025
709cf22
Limit Code Scanning API to 25 features per request
cklin Jul 11, 2025
3fb562d
build: refresh js files
cklin Jul 16, 2025
07455ed
Merge pull request #2972 from github/koesie10/ghes-satisfies
koesie10 Jul 17, 2025
03a2a17
Merge pull request #2967 from github/cklin/overlay-feature-flags
cklin Jul 17, 2025
aefb854
Feature.DiffInformedQueries: default to true
cklin Jul 16, 2025
614b64c
Diff-informed analysis: disable for GHES below 3.19
cklin Jul 17, 2025
3aef410
Add diff-informed-analysis-utils.test.ts
cklin Jul 17, 2025
6a49a8c
build: refresh js files
cklin Jul 17, 2025
7710ed1
Merge pull request #2970 from github/cklin/diff-informed-feature-enable
cklin Jul 17, 2025
210cc9b
Update changelog for v3.29.3
github-actions[bot] Jul 21, 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 AugmentationProperties.overlayDatabaseMode
This commit adds overlayDatabaseMode to AugmentationProperties and
creates a placeholder getOverlayDatabaseMode() function, with the
necessary inputs, to populate it.
  • Loading branch information
cklin committed Jul 3, 2025
commit 9022c7382c21c90e043270dea5d3f1120cbef6c8
5 changes: 5 additions & 0 deletions src/config-utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function createTestInitConfigInputs(
tempDir: "",
codeql: {} as CodeQL,
workspacePath: "",
sourceRoot: "",
githubVersion,
apiDetails: {
auth: "token",
Expand Down Expand Up @@ -819,6 +820,8 @@ const calculateAugmentationMacro = test.macro({
rawQueriesInput,
rawQualityQueriesInput,
languages,
"", // sourceRoot
undefined, // buildMode
mockLogger,
);
t.deepEqual(actualAugmentationProperties, expectedAugmentationProperties);
Expand Down Expand Up @@ -948,6 +951,8 @@ const calculateAugmentationErrorMacro = test.macro({
rawQueriesInput,
rawQualityQueriesInput,
languages,
"", // sourceRoot
undefined, // buildMode
mockLogger,
),
{ message: expectedError },
Expand Down
36 changes: 36 additions & 0 deletions src/config-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { shouldPerformDiffInformedAnalysis } from "./diff-informed-analysis-util
import { Feature, FeatureEnablement } from "./feature-flags";
import { Language, parseLanguage } from "./languages";
import { Logger } from "./logging";
import { OverlayDatabaseMode } from "./overlay-database-utils";
import { RepositoryNwo } from "./repository";
import { downloadTrapCaches } from "./trap-caching";
import {
Expand Down Expand Up @@ -189,6 +190,11 @@ export interface AugmentationProperties {
* Extra query exclusions to append to the config.
*/
extraQueryExclusions?: ExcludeQueryFilter[];

/**
* The overlay database mode to use.
*/
overlayDatabaseMode: OverlayDatabaseMode;
}

/**
Expand All @@ -202,6 +208,7 @@ export const defaultAugmentationProperties: AugmentationProperties = {
queriesInput: undefined,
qualityQueriesInput: undefined,
extraQueryExclusions: [],
overlayDatabaseMode: OverlayDatabaseMode.None,
};
export type Packs = Partial<Record<Language, string[]>>;

Expand Down Expand Up @@ -426,6 +433,7 @@ export interface InitConfigInputs {
tempDir: string;
codeql: CodeQL;
workspacePath: string;
sourceRoot: string;
githubVersion: GitHubVersion;
apiDetails: api.GitHubApiCombinedDetails;
features: FeatureEnablement;
Expand Down Expand Up @@ -459,6 +467,7 @@ export async function getDefaultConfig({
repository,
tempDir,
codeql,
sourceRoot,
githubVersion,
features,
logger,
Expand All @@ -484,6 +493,8 @@ export async function getDefaultConfig({
queriesInput,
qualityQueriesInput,
languages,
sourceRoot,
buildMode,
logger,
);

Expand Down Expand Up @@ -551,6 +562,7 @@ async function loadConfig({
tempDir,
codeql,
workspacePath,
sourceRoot,
githubVersion,
apiDetails,
features,
Expand Down Expand Up @@ -595,6 +607,8 @@ async function loadConfig({
queriesInput,
qualityQueriesInput,
languages,
sourceRoot,
buildMode,
logger,
);

Expand Down Expand Up @@ -637,6 +651,8 @@ async function loadConfig({
* @param languages The languages that the config file is for. If the packs input
* is non-empty, then there must be exactly one language. Otherwise, an
* error is thrown.
* @param sourceRoot The source root of the repository.
* @param buildMode The build mode to use.
* @param logger The logger to use for logging.
*
* @returns The properties that need to be augmented in the config file.
Expand All @@ -652,6 +668,8 @@ export async function calculateAugmentation(
rawQueriesInput: string | undefined,
rawQualityQueriesInput: string | undefined,
languages: Language[],
sourceRoot: string,
buildMode: BuildMode | undefined,
logger: Logger,
): Promise<AugmentationProperties> {
const packsInputCombines = shouldCombine(rawPacksInput);
Expand All @@ -665,6 +683,13 @@ export async function calculateAugmentation(
rawQueriesInput,
queriesInputCombines,
);
const overlayDatabaseMode = await getOverlayDatabaseMode(
codeql,
features,
sourceRoot,
buildMode,
logger,
);

const qualityQueriesInput = parseQueriesFromInput(
rawQualityQueriesInput,
Expand All @@ -685,6 +710,7 @@ export async function calculateAugmentation(
queriesInputCombines,
qualityQueriesInput,
extraQueryExclusions,
overlayDatabaseMode,
};
}

Expand All @@ -711,6 +737,16 @@ function parseQueriesFromInput(
return trimmedInput.split(",").map((query) => ({ uses: query.trim() }));
}

async function getOverlayDatabaseMode(
codeql: CodeQL,
features: FeatureEnablement,
sourceRoot: string,
buildMode: BuildMode | undefined,
logger: Logger,
): Promise<OverlayDatabaseMode> {
return OverlayDatabaseMode.None;
}

/**
* Pack names must be in the form of `scope/name`, with only alpha-numeric characters,
* and `-` allowed as long as not the first or last char.
Expand Down
14 changes: 9 additions & 5 deletions src/init-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,14 @@ async function run() {

const configFile = getOptionalInput("config-file");

// path.resolve() respects the intended semantics of source-root. If
// source-root is relative, it is relative to the GITHUB_WORKSPACE. If
// source-root is absolute, it is used as given.
const sourceRoot = path.resolve(
getRequiredEnvParam("GITHUB_WORKSPACE"),
getOptionalInput("source-root") || "",
);

try {
const statusReportBase = await createStatusReportBase(
ActionName.Init,
Expand Down Expand Up @@ -363,6 +371,7 @@ async function run() {
tempDir: getTemporaryDirectory(),
codeql,
workspacePath: getRequiredEnvParam("GITHUB_WORKSPACE"),
sourceRoot,
githubVersion: gitHubVersion,
apiDetails,
features,
Expand Down Expand Up @@ -390,11 +399,6 @@ async function run() {
}

try {
const sourceRoot = path.resolve(
getRequiredEnvParam("GITHUB_WORKSPACE"),
getOptionalInput("source-root") || "",
);

const overlayDatabaseMode = await getOverlayDatabaseMode(
(await codeql.getVersion()).version,
config,
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/codeql-action/pull/2977/commits/9022c7382c21c90e043270dea5d3f1120cbef6c8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy