You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a9f936f
Browse filesBrowse the repository at this point in the historyBrowse files
echo"<summary>Query suites and query counts</summary>"
30
+
echo
31
+
echo"Counts are resolved with \`codeql resolve queries\` at this release's commit, including upstream queries selected by a suite. Suites can overlap; counts are not additive."
32
+
echo
33
+
echo"| Language | Suite | Queries |"
34
+
echo"| --- | --- | ---: |"
35
+
36
+
FAILED=0
37
+
shopt -s nullglob
38
+
SUITES=(*/src/suites/*.qls)
39
+
if [ "${#SUITES[@]}"-eq 0 ];then
40
+
echo"::error::No query suites found">&2
41
+
exit 1
42
+
fi
43
+
forsuitein"${SUITES[@]}";do
44
+
language="${suite%%/*}"
45
+
if queries=$(codeql resolve queries "${RESOLVE_OPTIONS[@]}""$suite")&&
46
+
count=$(jq -er 'if type == "array" and all(.[]; type == "string") then length else error("Expected a query path array") end'<<<"$queries");then
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -316,8 +316,8 @@ process for each; most of it is manual today.
316
316
(`src` includes Actions, Rust, and Swift; `lib` is only created where there is shared library code; `ext` runs for `cpp`/`csharp`/`go`/`java`/`javascript`/`python`/`ruby`/`rust`; `ext-library-sources` only runs for `csharp`/`java`, the only languages with that pack) - plus a fifth
317
317
`summary` job that runs after the other four (`if: always()`, so it still runs even if one of them
318
318
fails), aggregates their per-pack results into the publish-summary and CodeQL library/query pack
319
-
version tables, and (on the release-cut `push` trigger only) upserts both tables into the GitHub
320
-
Release's notes.
319
+
version tables, resolves query suite counts, and (on the release-cut `push` trigger only) upserts
320
+
these sections into the GitHub Release's notes.
321
321
322
322
Each published/up-to-date cell in the publish-summary table is a shields.io **Dynamic Regex
323
323
Badge**, labeled with the version and showing that pack version's download count (e.g. `0.6.0 |
@@ -536,12 +536,18 @@ supported way to bump `.release.yml`:
536
536
-[ ] Merging it is what changes `.release.yml` on `main`, which auto-triggers
537
537
[`publish.yml`][publish-workflow] for a real batch publish: every pack whose version actually
538
538
changed gets published to [GHCR][ghcr-packages] in that one run.
539
-
-[ ] The run's `summary` job posts two markdown tables to the job summary **and** upserts both into
539
+
-[ ] The run's `summary` job posts three markdown tables to the job summary **and** upserts them into
540
540
the matching GitHub Release (`vX.Y.Z`), creating it if it doesn't exist yet: a publish summary
541
541
(what published) and a CodeQL standard library & query pack versions table (whether each
542
542
language's locked `codeql/*` dependencies match what the pinned CodeQL CLI actually ships
543
543
upstream — see the note under
544
-
[Updating the pinned CodeQL CLI/library version](#updating-the-pinned-codeql-clilibrary-version)).
544
+
[Updating the pinned CodeQL CLI/library version](#updating-the-pinned-codeql-clilibrary-version)),
545
+
plus a collapsible query suite inventory with per-language query counts. Each suite links to
546
+
its `.qls` file at the release commit. Counts use `codeql resolve queries --format=json`
547
+
and include upstream queries selected by the suite, resolved from the `github/codeql` source
548
+
at the pinned CLI tag. Suites may overlap, so their counts should not be added together.
549
+
A failed resolution is reported as an error, never as a zero count, and prevents updating
550
+
the inventory for that run.
545
551
546
552
> [!NOTE]
547
553
> **Pre-release vs. full release.** The GitHub Release created above is a **full release by
@@ -584,7 +590,8 @@ consider before using it:
584
590
585
591
The [Releases][releases] tab (`v0.2.0`, `v0.2.1`, ...) is a repo-wide changelog tied to cutting a
586
592
release as described above. Each release's auto-generated notes are supplemented with the publish
587
-
summary table and the CodeQL standard library & query pack versions table (see
593
+
summary table, the CodeQL standard library & query pack versions table, and a collapsible query
594
+
suite inventory (see
588
595
[Cutting a release](#cutting-a-release)), so you can see exactly which packs published at that
589
596
version — and whether the library/query pack versions they're compiled against are still in sync
590
597
with the pinned CodeQL CLI, with a direct link to the exact upstream file/line — without
0 commit comments