Skip to content

Commit 0e574bc

Browse files
henrymercerCopilot
andcommitted
Accept GitHub release URLs in the tools input
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 4cea925 commit 0e574bc

7 files changed

Lines changed: 509 additions & 46 deletions

File tree

‎CHANGELOG.md‎

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

55
## [UNRELEASED]
66

7-
No user facing changes.
7+
- The `tools` input to the `init` and `setup-codeql` actions now accepts GitHub release URLs. The Action selects a compatible bundle from the specified release, including a per-language bundle when eligible.
88

99
## 4.38.2 - 24 Sept 2026
1010

‎init/action.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ inputs:
1010
1111
- A local path to a CodeQL Bundle tarball, or
1212
- The URL of a CodeQL Bundle tarball GitHub release asset, or
13+
- A release URL from GitHub.com or the current GitHub instance, such as
14+
https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.27.0.
1315
- A special value `linked` which uses the version of the CodeQL tools
1416
that the Action has been bundled with.
1517
- A special value `nightly` which uses the latest nightly version of the

‎lib/entry-points.js‎

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

‎setup-codeql/action.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ inputs:
1010
1111
- A local path to a CodeQL Bundle tarball, or
1212
- The URL of a CodeQL Bundle tarball GitHub release asset, or
13+
- A release URL from GitHub.com or the current GitHub instance, such as
14+
https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.27.0.
1315
- A special value `linked` which uses the version of the CodeQL tools
1416
that the Action has been bundled with.
1517
- A special value `nightly` which uses the latest nightly version of the

‎src/codeql-bundle.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ export interface CodeQLDownloadSource {
2929
toolsVersion: string;
3030
/** The release lacks the eligible per-language bundle, so we selected the combined bundle. */
3131
perLanguageBundleFallback?: true;
32+
/**
33+
* The page of a requested release that may contain a different build than the bundle we cache for
34+
* its version, so we don't cache it.
35+
*/
36+
customReleaseURL?: string;
3237
}
3338

3439
/** Returns the exact bundle asset name for a platform and optional language. */

0 commit comments

Comments
 (0)