Skip to content

Commit cb49b15

Browse files
T-GroCopilot
andcommitted
Fix state-machine workflow: add protected-files: allowed for .github/docs/ output
The agentic-state-machine workflow has been failing since PR #19721 moved the output to .github/docs/state-machine.md. Files under .github/ are treated as protected by gh-aw (agent instruction files, security config). The allowed-files config permits WHICH files can be modified but does not override the built-in protected-files blocking. Adding protected-files: allowed explicitly opts in, which is safe since allowed-files already restricts writes to .github/docs/** only. Fixes #19739 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ccaa44a commit cb49b15

2 files changed

Lines changed: 18 additions & 17 deletions

File tree

.github/workflows/agentic-state-machine.lock.yml

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/agentic-state-machine.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ safe-outputs:
2929
draft: false
3030
max: 1
3131
allowed-files: [".github/docs/**"]
32+
protected-files: allowed
3233
---
3334

3435
# Agentic State Machine — Diagram Generator

0 commit comments

Comments
 (0)