Skip to content

Add gh-aw-issue-fixer-unrestricted for trusted .github remediations - #2038

Merged
fr4nc1sc0-r4m0n merged 3 commits into
mainfrom
feat/gh-aw-issue-fixer-workflows
Sep 9, 2026
Merged

fr4nc1sc0-r4m0n merged 3 commits into
mainfrom
feat/gh-aw-issue-fixer-workflows

Conversation

@fr4nc1sc0-r4m0n

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add gh-aw-issue-fixer-unrestricted as a sibling of gh-aw-issue-fixer for trusted callers that need draft PRs that may touch .github/ (including workflow YAML).
  • Keep gh-aw-issue-fixer and its workflow-edit guardrails unchanged.
  • Add a dedicated prompt fragment (workflow-edit-allowed) that explicitly allows verified .github/ remediations to proceed to draft PR creation.
  • Opt .github/ out of top-level dot-folder protection for this new lock via safe-outputs.create-pull-request.protected-files.exclude.
  • Add workflow docs and install example under gh-agent-workflows/issue-fixer-unrestricted/, update catalog/docs references, and exclude the new workflow from dogfooding.

Why

Callers such as obs-aw-security-fixer may need draft PRs for SEC-* findings that change .github/workflows/**. The default issue fixer can stop at comments because of workflow-edit guardrails plus top-level dot-folder protection. Naming this variant unrestricted clarifies it is not limited to workflow-only fixes.

Test plan

  • gh aw compile gh-aw-issue-fixer-unrestricted.md
  • Confirm lock embeds .github/ in protected_dot_folder_excludes and preserves draft PR behavior
  • make lint-workflows (prior run; re-check if needed)
  • After merge + oblt-aw cutover: retest a SEC-010 issue that only changes workflow YAML and expect a draft PR

Related issue: elastic/oblt-aw#1880
The body of this PR is automatically managed by the Trigger Update PR Body workflow.

Leave gh-aw-issue-fixer unchanged; this lock opts .github/ out of
dot-folder protection and tells the agent to open verified workflow PRs.
The -workflows suffix implied workflow-only remediations; this lock is
the unrestricted sibling of issue-fixer (including .github/ when needed).
@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n changed the title Add gh-aw-issue-fixer-workflows for .github remediations Add gh-aw-issue-fixer-unrestricted for trusted .github remediations Sep 9, 2026
@github-actions github-actions Bot mentioned this pull request Sep 9, 2026
CI Verify compiled workflows failed because the committed lock still
pinned github/gh-aw-actions/setup instead of the rewritten setup action.
@fr4nc1sc0-r4m0n
fr4nc1sc0-r4m0n merged commit 622701b into main Sep 9, 2026
26 checks passed
@fr4nc1sc0-r4m0n
fr4nc1sc0-r4m0n deleted the feat/gh-aw-issue-fixer-workflows branch September 9, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

medium_boom Medium PR blast radius; likely benefits from human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants