Skip to content

Commit

Permalink
Explain CLI version marker files
Browse files Browse the repository at this point in the history
  • Loading branch information
henrymercer committed Apr 3, 2023
1 parent 33f3087 commit a86046f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/update-bundle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ interface Defaults {
const CODEQL_BUNDLE_PREFIX = 'codeql-bundle-';

function getCodeQLCliVersionForRelease(release): string {
// We do not currently tag CodeQL bundles based on the CLI version they contain.
// Instead, we use a marker file `cli-version-<version>.txt` to record the CLI version.
// This marker file is uploaded as a release asset for all new CodeQL bundles.
const cliVersionsFromMarkerFiles = release.assets
.map((asset) => asset.name.match(/cli-version-(.*)\.txt/)?.[1])
.filter((v) => v)
Expand Down

0 comments on commit a86046f

Please sign in to comment.