Skip to content

Commit 5239ab1

Browse files
authored
Merge pull request #2787 from github/dbartol/remove-actions-extractor
Remove bundled copy of `actions` extractor
2 parents 396fd27 + b63847b commit 5239ab1

File tree

8 files changed

+5
-156
lines changed

8 files changed

+5
-156
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
44

55
## [UNRELEASED]
66

7-
No user facing changes.
7+
- The CodeQL Action no longer includes its own copy of the extractor for the `actions` language, which is currently in public preview.
8+
The `actions` extractor has been included in the CodeQL CLI since v2.20.6. If your workflow has enabled the `actions` language _and_ you have pinned
9+
your `tools:` property to a specific version of the CodeQL CLI earlier than v2.20.6, you will need to update to at least CodeQL v2.20.6 or disable
10+
`actions` analysis.
811

912
## 3.28.18 - 16 May 2025
1013

actions-extractor/codeql-extractor.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

actions-extractor/tools/autobuild-impl.ps1

Lines changed: 0 additions & 40 deletions
This file was deleted.

actions-extractor/tools/autobuild.cmd

Lines changed: 0 additions & 3 deletions
This file was deleted.

actions-extractor/tools/autobuild.sh

Lines changed: 0 additions & 39 deletions
This file was deleted.

lib/codeql.js

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

lib/codeql.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/codeql.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -570,20 +570,6 @@ export async function getCodeQLForCmd(
570570
extraArgs.push(`--trace-process-name=${processName}`);
571571
}
572572

573-
if (config.languages.indexOf(Language.actions) >= 0) {
574-
// We originally added an embedded version of the Actions extractor to the CodeQL Action
575-
// itself in order to deploy the extractor between CodeQL releases. When we did add the
576-
// extractor to the CLI, though, its autobuild script was missing the execute bit.
577-
// 2.20.6 is the first CLI release with the fully-functional extractor in the CLI. For older
578-
// versions, we'll keep using the embedded extractor. We can remove the embedded extractor
579-
// once 2.20.6 is deployed in the runner images.
580-
if (!(await util.codeQlVersionAtLeast(codeql, "2.20.6"))) {
581-
extraArgs.push("--search-path");
582-
const extractorPath = path.resolve(__dirname, "../actions-extractor");
583-
extraArgs.push(extractorPath);
584-
}
585-
}
586-
587573
const codeScanningConfigFile = await generateCodeScanningConfig(
588574
config,
589575
logger,

0 commit comments

Comments
 (0)