Skip to content
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
ba80880
Update changelog and version after v4.38.1
github-actions[bot] Sep 18, 2026
f8b1c08
Rebuild
github-actions[bot] Sep 18, 2026
a7afe0a
Merge pull request #4153 from github/mergeback/v4.38.1-to-main-1c5b6756
mbg Sep 18, 2026
cb31eab
Do not include trailing newlines in `NO_CHANGES_STR`
mario-campos Sep 18, 2026
47d607e
Add changelog parsing helper `getHeader`
mario-campos Sep 18, 2026
bb1dc54
Add CHANGELOG function `addBodyLinesToUnreleasedSection`
mario-campos Sep 18, 2026
1ee3265
Add `changenotes.mts flush` command
mario-campos Sep 18, 2026
bffae1c
Use `withChangelog` I/O helper
mario-campos Sep 18, 2026
b246e56
Use `ExitCode` instead of `0`/`1`
mario-campos Sep 18, 2026
d63b2a4
Assume '[UNRELEASED]' section is first section
mario-campos Sep 18, 2026
128614a
Simplify `getHeader` to operate on `ChangelogSection`s
mario-campos Sep 18, 2026
bc0efd6
Simplify `addBodyLinesToUnreleasedSection`
mario-campos Sep 18, 2026
977b29b
Replace `splice` with `push` and `pop`
mario-campos Sep 18, 2026
7f54212
Rename `flush` command to `assemble`
mario-campos Sep 18, 2026
a92f7fb
Refactor changenote file listing into function to D.R.Y.
mario-campos Sep 18, 2026
7715606
Update JSDoc comment with parameter `lines`
mario-campos Sep 21, 2026
598cda3
Apply suggestion from @mbg
mario-campos Sep 21, 2026
c496c6c
Rename `name` to `absolutePath` for clarity
mario-campos Sep 21, 2026
0263122
Format code with `npm run lint-fix`
mario-campos Sep 21, 2026
c0bd54f
Replace JSDoc text with `@throws`
mario-campos Sep 21, 2026
b1668d6
Flesh out a comment
mario-campos Sep 21, 2026
669351e
Replace `getRequiredEnvParam` calls in `init` and `setup-codeql` action
mbg Sep 16, 2026
3a30b15
Refactor `setupDiffInformedQueryRun` querying `checkout_path` itself
mbg Sep 16, 2026
ada4e83
Refactor `cleanupAndUploadOverlayBaseDatabaseToCache` querying `check…
mbg Sep 16, 2026
8a88af6
Refactor `cleanupAndUploadDatabases` querying `checkout_path` itself
mbg Sep 16, 2026
6dd161b
Merge pull request #4155 from github/mario-campos/merge-changenotes
mario-campos Sep 22, 2026
416ff0d
Merge pull request #4157 from github/mbg/refactor/checkout-path
mbg Sep 22, 2026
07dc949
Use default state in per-language bundle tests
henrymercer Sep 22, 2026
06344e2
Stub nightly release listing directly
henrymercer Sep 22, 2026
dba87a1
Clarify elapsed-time helper documentation
henrymercer Sep 22, 2026
a9a8cd1
Explain the nightly bundle version-check exception
henrymercer Sep 22, 2026
f2ec2f6
Tweak comment for latest nightly version check
henrymercer Sep 22, 2026
48321b2
Update src/per-language-bundles.ts
henrymercer Sep 22, 2026
e574ef1
Merge main into per-language bundle follow-ups
henrymercer Sep 22, 2026
3bacfe2
Remove trailing whitespace from nightly comment
henrymercer Sep 22, 2026
5316224
Update default bundle to codeql-bundle-v2.27.1
github-actions[bot] Sep 22, 2026
81fb677
Add changelog note
github-actions[bot] Sep 22, 2026
33141e5
Merge pull request #4159 from github/henrymercer/pr-4146-follow-ups
henrymercer Sep 22, 2026
41a4b9a
Merge pull request #4160 from github/update-bundle/codeql-bundle-v2.27.1
mbg Sep 22, 2026
9691115
Disable `UsePerfData` for `resolveExtractor`
mbg Sep 23, 2026
f0064b2
Merge pull request #4162 from github/mbg/cli/disable-perfdata
mbg Sep 23, 2026
82d91df
Update changelog for v4.38.2
github-actions[bot] Sep 23, 2026
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
53 changes: 32 additions & 21 deletions lib/entry-points.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 19 additions & 6 deletions src/analyze-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,11 @@ async function runAutobuildIfLegacyGoWorkflow(config: Config, logger: Logger) {
await runAutobuild(config, BuiltInLanguage.go, logger);
}

async function run({ startedAt, logger }: ActionState<["Base", "Logger"]>) {
async function run({
startedAt,
logger,
actions,
}: ActionState<["Base", "Logger", "Actions"]>) {
// To capture errors appropriately, keep as much code within the try-catch as
// possible, and only use safe functions outside.

Expand Down Expand Up @@ -307,8 +311,13 @@ async function run({ startedAt, logger }: ActionState<["Base", "Logger"]>) {
logger,
);

const checkoutPath = actions.getRequiredInput("checkout_path");

// Setup diff informed analysis if needed (based on whether init created the file)
const diffRangePackDir = await setupDiffInformedQueryRun(logger);
const diffRangePackDir = await setupDiffInformedQueryRun(
logger,
checkoutPath,
);

await warnIfGoInstalledAfterInit(config, logger);
await runAutobuildIfLegacyGoWorkflow(config, logger);
Expand Down Expand Up @@ -354,7 +363,6 @@ async function run({ startedAt, logger }: ActionState<["Base", "Logger"]>) {
actionsUtil.getOptionalInput("upload"),
);
if (runStats) {
const checkoutPath = actionsUtil.getRequiredInput("checkout_path");
const category = actionsUtil.getOptionalInput("category");

uploadResults = await postProcessAndUploadSarif(
Expand Down Expand Up @@ -388,18 +396,23 @@ async function run({ startedAt, logger }: ActionState<["Base", "Logger"]>) {
// Possibly upload the overlay-base database to actions cache.
// Note: Take care with the ordering of this call since databases may be cleaned up
// at the `overlay` level.
await cleanupAndUploadOverlayBaseDatabaseToCache(codeql, config, logger);
await cleanupAndUploadOverlayBaseDatabaseToCache(
codeql,
config,
logger,
checkoutPath,
);

// Possibly upload the database bundles for remote queries.
// Note: Take care with the ordering of this call since databases may be cleaned up
// at the `overlay` or `clear` level.
databaseUploadResults = await cleanupAndUploadDatabases(
{ logger, features },
repositoryNwo,
codeql,
config,
apiDetails,
features,
logger,
checkoutPath,
);

// Possibly upload the TRAP caches for later re-use
Expand Down
4 changes: 2 additions & 2 deletions src/analyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { performance } from "perf_hooks";
import * as io from "@actions/io";
import * as yaml from "js-yaml";

import { getTemporaryDirectory, getRequiredInput } from "./actions-util";
import { getTemporaryDirectory } from "./actions-util";
import * as analyses from "./analyses";
import { setupCppAutobuild } from "./autobuild";
import { type CodeQL } from "./codeql";
Expand Down Expand Up @@ -233,6 +233,7 @@ async function finalizeDatabaseCreation(
*/
export async function setupDiffInformedQueryRun(
logger: Logger,
checkoutPath: string,
): Promise<string | undefined> {
return await withGroupAsync(
"Generating diff range extension pack",
Expand All @@ -245,7 +246,6 @@ export async function setupDiffInformedQueryRun(
return undefined;
}

const checkoutPath = getRequiredInput("checkout_path");
const packDir = writeDiffRangeDataExtensionPack(
logger,
diffRanges,
Expand Down
Loading
Loading