The generator reads a data file and writes markup. That is a parser and a
renderer, which is exactly the shape where an injection or an escaping mistake
lives, so the source gets scanned like any other code.
CodeQL, on pull requests to any branch and on pushes to the default branch, with
the results in the code scanning tab. One language, so one analysis job.
The check name has to be stable, because a ruleset matches it literally. With a
single-language matrix the run reports as Analyze (go). The gate this
repository is held to requires two names for this, one per matrix leg plus the
workflow. There is one leg here, so one name; that difference is a deviation and
belongs in the parity ledger with its reason rather than being papered over with
a second empty job.
Confirm the scan actually names this repository rather than the template it was
copied from, which is a mistake that has already happened elsewhere and produces
a green check that scanned nothing here.
Done when
A pull request shows a check named exactly Analyze (go), the code scanning tab
lists an analysis whose repository is this one, and a deliberately introduced
finding appears in that tab and reds the check.
The generator reads a data file and writes markup. That is a parser and a
renderer, which is exactly the shape where an injection or an escaping mistake
lives, so the source gets scanned like any other code.
CodeQL, on pull requests to any branch and on pushes to the default branch, with
the results in the code scanning tab. One language, so one analysis job.
The check name has to be stable, because a ruleset matches it literally. With a
single-language matrix the run reports as
Analyze (go). The gate thisrepository is held to requires two names for this, one per matrix leg plus the
workflow. There is one leg here, so one name; that difference is a deviation and
belongs in the parity ledger with its reason rather than being papered over with
a second empty job.
Confirm the scan actually names this repository rather than the template it was
copied from, which is a mistake that has already happened elsewhere and produces
a green check that scanned nothing here.
Done when
A pull request shows a check named exactly
Analyze (go), the code scanning tablists an analysis whose repository is this one, and a deliberately introduced
finding appears in that tab and reds the check.