Skip to content

Commit a62e57b

Browse files
Update state-machine.md for security scan draft filter and repo rules (dotnet#19872)
- Add draft PR filter to security scan diagram - Add repo rules to security scan reads column - Update source hash for labelops-pr-security-scan.md 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 80607ff commit a62e57b

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/docs/state-machine.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Auto-generated documentation of all agentic workflows in this repository.
1010
| **labelops-pr-maintenance** | ⏰ every 3h | PRs with AI-Auto-Resolve-* labels, CI status | comment, push, labels, dispatch | `AI-Auto-Resolve-CI`, `AI-Auto-Resolve-Conflicts`, `AI-needs-CI-fix-input` |
1111
| **regression-pr-shepherd** | ⏰ every 4h | PRs with `AI-Issue-Regression-PR` | comment, push, remove-labels | `AI-Issue-Regression-PR`, `AI-thinks-issue-fixed` |
1212
| **labelops-flake-fix** | 🤖 dispatched by labelops-pr-maintenance | Test results, PR diffs | PR, comment, issue | `Flaky`, `automation` |
13-
| **labelops-pr-security-scan** | ⏰ every 1h | PR diffs, file lists | labels, comment | `AI-Tooling-Check-Scanned-Clean`, `AI-Tooling-Check-Bypassed`, `⚠️ Affects-*`, `⚠️ Suspicious-Prompting`, `⚠️ Scope-Review-Needed` |
13+
| **labelops-pr-security-scan** | ⏰ every 1h | PR diffs, file lists, repo rules | labels, comment | `AI-Tooling-Check-Scanned-Clean`, `AI-Tooling-Check-Bypassed`, `⚠️ Affects-*`, `⚠️ Suspicious-Prompting`, `⚠️ Scope-Review-Needed` |
1414
| **aw-auto-update** | ⏰ every 24h | `.github/workflows/*` files | agent-session | `automation` |
1515

1616
## Issue Lifecycle
@@ -134,10 +134,20 @@ stateDiagram-v2
134134
[*] --> ScanQueue: ⏰ labelops-pr-security-scan (1h)
135135
136136
state "Per-PR Classification" as ScanLoop {
137-
ScanQueue --> CheckMemory: 🤖 security-scan reads state.json
137+
ScanQueue --> ReadRules: 🤖 security-scan reads repo rules
138+
ReadRules --> CheckDraft: 🤖 security-scan checks isDraft
139+
140+
state draftcheck <<choice>>
141+
CheckDraft --> draftcheck
142+
draftcheck --> SkipDraft: draft PR
143+
draftcheck --> CheckMemory: non-draft PR
144+
145+
SkipDraft --> [*]: skip
146+
147+
CheckMemory --> CheckMemory2: 🤖 security-scan reads state.json
138148
139149
state memcheck <<choice>>
140-
CheckMemory --> memcheck
150+
CheckMemory2 --> memcheck
141151
memcheck --> AlreadyScanned: sha unchanged
142152
memcheck --> ClassifyOrigin: new or updated PR
143153
@@ -245,7 +255,7 @@ stateDiagram-v2
245255
aw-auto-update.md: da8c5e340a43d73616e3a0203c7e56de9ca4b82ee78b1902afe466a49a08bc17
246256
labelops-flake-fix.md: 7dca5b8faa60f947204f8925c6238fbecf42aa8cbf3144a166120501b0eef1e4
247257
labelops-pr-maintenance.md: 59ba52fc625e0b9112c31864e92154cdf09acf0bc0f2b167aa30a0d76baa898f
248-
labelops-pr-security-scan.md: 4e0ee1ccd6212be30f8ccd334ecbc47123655e2507b5968c1bf2c1678a1ed306
258+
labelops-pr-security-scan.md: 675430850eaf8edaa86b4d26c9d381ac48e13536469f17748e7104f6e75937c2
249259
regression-pr-shepherd.md: 18a65fe1cdf8aa219158f1d610db14078e5ff2f1ac912df2566bf796792395b5
250260
repo-assist.md: 3775b51d142d22c98e87e48e8ac9d46cdf69e9c8306d5787758a35578dcb1119
251261
-->

0 commit comments

Comments
 (0)