Skip to content

Add code scanning under the check name Analyze (go) #12

Description

@iderex

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

blocked-on-a-decisionWaits on a decision that is not taken yet. No change to this tree moves it.cisecurity

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions