Skip to content

Commit 57f9418

Browse files
Milos KotlarCopilot
andcommitted
[ci-scan] Fix ci-failure-scan-feedback protected-files dot-folder rejection
The ci-failure-scan-feedback workflow proposes edits to .github/workflows/ci-failure-scan.md, but gh-aw v0.71.5 enforces a default protected-files rule that blocks any patch touching a top-level .* directory (including .github/), independently of allowed-files. Every scheduled run failed at the safe_outputs step with: Cannot create pull request: patch modifies protected files (.github/workflows/ci-failure-scan.md). Add them to the allowed-files configuration field or set protected-files: fallback-to-issue ... Opt the .github/ directory out of the dot-folder rule on both create-pull-request and push-to-pull-request-branch by adding a protected-files block with policy: blocked + exclude: [.github/]. The allowed-files entry still restricts edits to a single file (.github/workflows/ci-failure-scan.md), so the effective surface is unchanged; only the redundant dot-folder gate is lifted. All other default protections (package manifests, CODEOWNERS, AGENTS.md, etc.) remain in force. Lock file regenerated with gh aw compile; manual pat_pool patch on the detection job (gh-aw issue #30232) reapplied. Verified failing run: https://github.com/dotnet/runtime/actions/runs/26619056447 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d1b43a3 commit 57f9418

2 files changed

Lines changed: 25 additions & 17 deletions

File tree

.github/workflows/ci-failure-scan-feedback.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/ci-failure-scan-feedback.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,20 @@ safe-outputs:
5252
max: 1
5353
allowed-files:
5454
- ".github/workflows/ci-failure-scan.md"
55+
protected-files:
56+
policy: blocked
57+
exclude:
58+
- .github/
5559
labels: [agentic-workflows]
5660
allowed-labels: [agentic-workflows]
5761
push-to-pull-request-branch:
5862
max: 1
5963
allowed-files:
6064
- ".github/workflows/ci-failure-scan.md"
65+
protected-files:
66+
policy: blocked
67+
exclude:
68+
- .github/
6169
update-pull-request:
6270
max: 1
6371
create-issue:

0 commit comments

Comments
 (0)