The secrets check stops reading camelCase run ids as phone numbers (#4861) (#4881)

The secrets check no longer reports an 11-digit GitHub Actions run id as
a phone number when code names it `runId`, `RunGithubID` or passes it to
a run call such as `resolveRunDetection(...)`.

Why: Go and TypeScript test fixtures tripped a phone-number finding, and
`gstack-post` asked for confirmation on PR bodies that quoted them.

Nothing to do; every number the check reported before still reports.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/red-team#1 reader=red-team
Review-Finding: p1/red-team#2 reader=red-team
Review-Finding: p2/outside-voice#1 reader=outside-voice
Review-Finding: p2/outside-voice#2 reader=outside-voice
Review-Finding: p2/red-team#1 reader=red-team
Review-Finding: p2/adversarial-native#1 reader=adversarial-native
Review-Finding: p2/adversarial-native#3 reader=adversarial-native
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-28 17:04:07 +00:00
1 parent 4b8c7005dc
commit be9b34e3dc
4 files changed
+112 -1

No files matched your search

+10
View File
@@ -3203,6 +3203,16 @@ exact tokens it finds in these positions:
check accept it too, not only `gstack-post`. A national number written
without its `+` right after a run word reads as a run id there; that is the
accepted residual of the ruling that a run id is not a phone number;
- an 11-digit id that is the whole value of a key or assignment named by a
camelCase run identifier (`runId: <id>`, `RunGithubID: <id>`,
`workflowRunID = <id>`, `lastRun := <id>`), or an argument of a call whose
name ends in `Run` plus `Id`, `Detection`, `Status`, `Result`, `Attempt`,
`Log`, `Job` or `Artifact` after only plain identifier arguments
(`resolveRunDetection(t, db, d, <id>, ...)`). The scanner itself exempts it
(`isCiRunIdentifier`). A plain `"run": <n>` key, `runner` or `brunId`, an
id with more text after it in the same value, and any line with a phone word
(`phone`, `tel`, `mobile`, `cell`, `contact`, `call`, …) within 80
characters of the id still report (#4861);
- every 11-digit id chained after an allowlisted one through `, `, ` and `,
` & `, ` or ` or ` / `, optionally with a `(#1234)` between
(`screen 40269992077 (#3434) and 40275443393 (#3453)`);