From 8f5e8d4e4c9339b83961112ffed2d66c4be7889b Mon Sep 17 00:00:00 2001 From: Jan Krivanek Date: Tue, 10 Mar 2026 12:22:52 +0100 Subject: [PATCH] Add targets for repo health aw --- .github/workflows/repo-health-check.lock.yml | 4 ++-- .github/workflows/repo-health-check.md | 2 ++ .github/workflows/repo-health-groom.lock.yml | 4 ++-- .github/workflows/repo-health-groom.md | 1 + .github/workflows/repo-health-investigate.lock.yml | 4 ++-- .github/workflows/repo-health-investigate.md | 1 + 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/repo-health-check.lock.yml b/.github/workflows/repo-health-check.lock.yml index c37f726fd2..7ceee6eca8 100644 --- a/.github/workflows/repo-health-check.lock.yml +++ b/.github/workflows/repo-health-check.lock.yml @@ -367,7 +367,7 @@ jobs: mkdir -p /tmp/gh-aw/safeoutputs mkdir -p /tmp/gh-aw/mcp-logs/safeoutputs cat > /opt/gh-aw/safeoutputs/config.json << 'GH_AW_SAFE_OUTPUTS_CONFIG_EOF' - {"add_comment":{"max":1},"create_issue":{"max":1},"dispatch_workflow":{"max":5,"workflow_files":{"repo-health-investigate":".lock.yml"},"workflows":["repo-health-investigate"]},"missing_data":{},"missing_tool":{},"noop":{"max":1},"update_issue":{"max":1}} + {"add_comment":{"max":1,"target":"*"},"create_issue":{"max":1},"dispatch_workflow":{"max":5,"workflow_files":{"repo-health-investigate":".lock.yml"},"workflows":["repo-health-investigate"]},"missing_data":{},"missing_tool":{},"noop":{"max":1},"update_issue":{"max":1,"target":"*"}} GH_AW_SAFE_OUTPUTS_CONFIG_EOF cat > /opt/gh-aw/safeoutputs/tools.json << 'GH_AW_SAFE_OUTPUTS_TOOLS_EOF' [ @@ -1247,7 +1247,7 @@ jobs: uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 env: GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }} - GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1},\"create_issue\":{\"max\":1},\"dispatch_workflow\":{\"max\":5,\"workflow_files\":{\"repo-health-investigate\":\".lock.yml\"},\"workflows\":[\"repo-health-investigate\"]},\"missing_data\":{},\"missing_tool\":{},\"update_issue\":{\"allow_body\":true,\"max\":1}}" + GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1,\"target\":\"*\"},\"create_issue\":{\"max\":1},\"dispatch_workflow\":{\"max\":5,\"workflow_files\":{\"repo-health-investigate\":\".lock.yml\"},\"workflows\":[\"repo-health-investigate\"]},\"missing_data\":{},\"missing_tool\":{},\"update_issue\":{\"allow_body\":true,\"max\":1,\"target\":\"*\"}}" with: github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} script: | diff --git a/.github/workflows/repo-health-check.md b/.github/workflows/repo-health-check.md index f46b01c602..9a992367ac 100644 --- a/.github/workflows/repo-health-check.md +++ b/.github/workflows/repo-health-check.md @@ -22,8 +22,10 @@ safe-outputs: max: 1 update-issue: max: 1 + target: "*" add-comment: max: 1 + target: "*" dispatch-workflow: max: 5 workflows: ["repo-health-investigate"] diff --git a/.github/workflows/repo-health-groom.lock.yml b/.github/workflows/repo-health-groom.lock.yml index ef98c0d430..4a3a6acc88 100644 --- a/.github/workflows/repo-health-groom.lock.yml +++ b/.github/workflows/repo-health-groom.lock.yml @@ -348,7 +348,7 @@ jobs: mkdir -p /tmp/gh-aw/safeoutputs mkdir -p /tmp/gh-aw/mcp-logs/safeoutputs cat > /opt/gh-aw/safeoutputs/config.json << 'GH_AW_SAFE_OUTPUTS_CONFIG_EOF' - {"hide_comment":{"max":50},"missing_data":{},"missing_tool":{},"noop":{"max":1},"update_issue":{"max":1}} + {"hide_comment":{"max":50},"missing_data":{},"missing_tool":{},"noop":{"max":1},"update_issue":{"max":1,"target":"*"}} GH_AW_SAFE_OUTPUTS_CONFIG_EOF cat > /opt/gh-aw/safeoutputs/tools.json << 'GH_AW_SAFE_OUTPUTS_TOOLS_EOF' [ @@ -1098,7 +1098,7 @@ jobs: uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 env: GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }} - GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"hide_comment\":{\"max\":50},\"missing_data\":{},\"missing_tool\":{},\"update_issue\":{\"allow_body\":true,\"max\":1}}" + GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"hide_comment\":{\"max\":50},\"missing_data\":{},\"missing_tool\":{},\"update_issue\":{\"allow_body\":true,\"max\":1,\"target\":\"*\"}}" with: github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} script: | diff --git a/.github/workflows/repo-health-groom.md b/.github/workflows/repo-health-groom.md index cacb7eb6f8..44f556be86 100644 --- a/.github/workflows/repo-health-groom.md +++ b/.github/workflows/repo-health-groom.md @@ -17,6 +17,7 @@ tools: safe-outputs: update-issue: max: 1 + target: "*" hide-comment: max: 50 --- diff --git a/.github/workflows/repo-health-investigate.lock.yml b/.github/workflows/repo-health-investigate.lock.yml index 733e5d736c..39e0da558b 100644 --- a/.github/workflows/repo-health-investigate.lock.yml +++ b/.github/workflows/repo-health-investigate.lock.yml @@ -384,7 +384,7 @@ jobs: mkdir -p /tmp/gh-aw/safeoutputs mkdir -p /tmp/gh-aw/mcp-logs/safeoutputs cat > /opt/gh-aw/safeoutputs/config.json << 'GH_AW_SAFE_OUTPUTS_CONFIG_EOF' - {"add_comment":{"max":1},"missing_data":{},"missing_tool":{},"noop":{"max":1}} + {"add_comment":{"max":1,"target":"*"},"missing_data":{},"missing_tool":{},"noop":{"max":1}} GH_AW_SAFE_OUTPUTS_CONFIG_EOF cat > /opt/gh-aw/safeoutputs/tools.json << 'GH_AW_SAFE_OUTPUTS_TOOLS_EOF' [ @@ -1052,7 +1052,7 @@ jobs: uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 env: GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }} - GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1},\"missing_data\":{},\"missing_tool\":{}}" + GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1,\"target\":\"*\"},\"missing_data\":{},\"missing_tool\":{}}" with: github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} script: | diff --git a/.github/workflows/repo-health-investigate.md b/.github/workflows/repo-health-investigate.md index 96d9d1306c..9a1809d558 100644 --- a/.github/workflows/repo-health-investigate.md +++ b/.github/workflows/repo-health-investigate.md @@ -34,6 +34,7 @@ tools: safe-outputs: add-comment: max: 1 + target: "*" --- # Repo Health — Investigate Finding