Commit e003473
authored
docs: describe the CodeQL gate that is actually in place (#43)
Follow-up to the CodeQL centralisation. The operational docs still
describe the gate that was replaced.
## What was stale
CodeQL now calls the org's reusable analysis in `bymaxone/.github`,
which resolves the repository's visibility **through the API** rather
than through `github.event.repository.private`. The docs still described
the expression form.
The autopilot notes were wrong in a way an agent would act on: they
predicted **two skipped checks** while the repo is private. The reusable
reports one that **runs and passes** (`codeql / Repository visibility`)
and one that **skips** (`codeql / Analyze (<language>)`).
## Why the API instead of the expression
The `schedule` event carries no webhook payload — GitHub lists it as
*Not applicable* — so `github.event.repository` is null there and
`!null` evaluates to **true**. The expression form therefore fails open
on the weekly run: a private repository would analyse and then fail at
the SARIF upload.
## What was deliberately not changed
**Scorecard's description.** It still uses `if: ${{
!github.event.repository.private }}`, so rewriting both mentions would
have traded one wrong sentence for another. Its description now stands
on its own.
**`docs/tasks/phase-00-*` and CHANGELOG entries.** Those record what was
built at the time. Editing them would misstate the history rather than
fix a stale instruction — a reader looking for what phase 00 delivered
should find phase 00, not today.1 parent 1b3ae0d commit e003473
2 files changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
| 551 | + | |
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| |||
0 commit comments