Skip to content

[ci-scan] Allow feedback workflow to edit shared KBE instructions#128832

Open
vitek-karas wants to merge 2 commits into
dotnet:mainfrom
vitek-karas:vitek-karas/allow-list-fix-pr
Open

[ci-scan] Allow feedback workflow to edit shared KBE instructions#128832
vitek-karas wants to merge 2 commits into
dotnet:mainfrom
vitek-karas:vitek-karas/allow-list-fix-pr

Conversation

@vitek-karas
Copy link
Copy Markdown
Member

Note

This pull request description was generated with Copilot assistance.

Summary

  • allow ci-failure-scan-feedback to update .github/workflows/shared/create-kbe.instructions.md
  • keep the workflow prompt text in sync with the expanded allowed file set
  • regenerate the compiled lock workflow so the safe-outputs allow-list matches the source workflow

Validation

  • gh aw compile .github/workflows/ci-failure-scan-feedback.md
  • git diff --check -- .github/workflows/ci-failure-scan-feedback.md .github/workflows/ci-failure-scan-feedback.lock.yml

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@vitek-karas vitek-karas requested a review from kotlarmilos June 1, 2026 09:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands the ci-failure-scan-feedback agent workflow’s permitted edit surface so it can propose (and safely emit) changes not only to the main scanner prompt (ci-failure-scan.md), but also to the shared KBE authoring instructions (shared/create-kbe.instructions.md). The compiled lock workflow is regenerated so the Safe Outputs allow-list matches the updated source workflow.

Changes:

  • Extend the workflow description and prompt text to explicitly allow edits to .github/workflows/shared/create-kbe.instructions.md.
  • Add .github/workflows/shared/create-kbe.instructions.md to the Safe Outputs allowed-files list for PR creation and branch pushes.
  • Regenerate ci-failure-scan-feedback.lock.yml so the embedded Safe Outputs config matches the source workflow.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/ci-failure-scan-feedback.md Updates the workflow’s description, prompt “hard rules”, and Safe Outputs allow-list to include the shared KBE instructions file.
.github/workflows/ci-failure-scan-feedback.lock.yml Recompiled lock file reflecting the expanded allow-list; also includes updated embedded Safe Outputs config.

Comment thread .github/workflows/ci-failure-scan-feedback.lock.yml
Address Copilot review comment on PR dotnet#128832: the rewritten manual-patch
comment referenced a phantom 'ci-scan.lock.yml' file that does not exist
(only ci-failure-scan.lock.yml and ci-failure-scan-feedback.lock.yml
carry this patch).

The recompile during this PR also moved the comment block into the middle
of the 'needs:' list (between '- agent' and '- pat_pool') and dropped the
upstream tracking reference (gh-aw issue dotnet#30232) and the user-visible
symptom (the 'Security scanning requires review' CAUTION banner).

Restore the canonical comment verbatim from ci-failure-scan.lock.yml so
both lock files carry identical, accurate patch documentation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@kotlarmilos kotlarmilos changed the title Allow ci-scan feedback to edit shared KBE instructions [ci-scan] Allow feedback workflow to edit shared KBE instructions Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants