Skip to content

Commit 6127daa

Browse files
docs: update state-machine diagram for security scan pagination + date filter (#19909)
Reflects changes in labelops-pr-security-scan.md: - Adds date filter (cutoff-based skip) as explicit choice state - Clarifies that repo rules + memory are read together at setup - Notes paginated PR listing (newest first) - Updates state.json check description Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 42e9b57 commit 6127daa

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/docs/state-machine.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,24 @@ stateDiagram-v2
134134
[*] --> ScanQueue: ⏰ labelops-pr-security-scan (1h)
135135
136136
state "Per-PR Classification" as ScanLoop {
137-
ScanQueue --> ReadRules: 🤖 security-scan reads repo rules
138-
ReadRules --> CheckDraft: 🤖 security-scan checks isDraft
137+
ScanQueue --> ReadRules: 🤖 security-scan reads repo rules + memory
138+
ReadRules --> CheckDate: 🤖 security-scan paginates PRs (newest first)
139+
140+
state datecheck <<choice>>
141+
CheckDate --> datecheck
142+
datecheck --> SkipOld: PR before date cutoff
143+
datecheck --> CheckDraft: PR within scan window
144+
145+
SkipOld --> [*]: skip
139146
140147
state draftcheck <<choice>>
141-
CheckDraft --> draftcheck
148+
CheckDraft --> draftcheck: 🤖 security-scan checks isDraft
142149
draftcheck --> SkipDraft: draft PR
143150
draftcheck --> CheckMemory: non-draft PR
144151
145152
SkipDraft --> [*]: skip
146153
147-
CheckMemory --> CheckMemory2: 🤖 security-scan reads state.json
154+
CheckMemory --> CheckMemory2: 🤖 security-scan checks state.json sha
148155
149156
state memcheck <<choice>>
150157
CheckMemory2 --> memcheck
@@ -255,7 +262,7 @@ stateDiagram-v2
255262
aw-auto-update.md: da8c5e340a43d73616e3a0203c7e56de9ca4b82ee78b1902afe466a49a08bc17
256263
labelops-flake-fix.md: 7dca5b8faa60f947204f8925c6238fbecf42aa8cbf3144a166120501b0eef1e4
257264
labelops-pr-maintenance.md: 59ba52fc625e0b9112c31864e92154cdf09acf0bc0f2b167aa30a0d76baa898f
258-
labelops-pr-security-scan.md: 675430850eaf8edaa86b4d26c9d381ac48e13536469f17748e7104f6e75937c2
265+
labelops-pr-security-scan.md: 7dd4063d35d2bac6b0edf238e72a1ffe2570d0102340dab8064bf1de9ec73ac7
259266
regression-pr-shepherd.md: 18a65fe1cdf8aa219158f1d610db14078e5ff2f1ac912df2566bf796792395b5
260267
repo-assist.md: 3775b51d142d22c98e87e48e8ac9d46cdf69e9c8306d5787758a35578dcb1119
261268
-->

0 commit comments

Comments
 (0)