Skip to content

Commit 1a6739e

Browse files
authored
Add targets for repo health aw (#7588)
1 parent df690c2 commit 1a6739e

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

.github/workflows/repo-health-check.lock.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ jobs:
367367
mkdir -p /tmp/gh-aw/safeoutputs
368368
mkdir -p /tmp/gh-aw/mcp-logs/safeoutputs
369369
cat > /opt/gh-aw/safeoutputs/config.json << 'GH_AW_SAFE_OUTPUTS_CONFIG_EOF'
370-
{"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}}
370+
{"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":"*"}}
371371
GH_AW_SAFE_OUTPUTS_CONFIG_EOF
372372
cat > /opt/gh-aw/safeoutputs/tools.json << 'GH_AW_SAFE_OUTPUTS_TOOLS_EOF'
373373
[
@@ -1247,7 +1247,7 @@ jobs:
12471247
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
12481248
env:
12491249
GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }}
1250-
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}}"
1250+
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\":\"*\"}}"
12511251
with:
12521252
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
12531253
script: |

.github/workflows/repo-health-check.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ safe-outputs:
2222
max: 1
2323
update-issue:
2424
max: 1
25+
target: "*"
2526
add-comment:
2627
max: 1
28+
target: "*"
2729
dispatch-workflow:
2830
max: 5
2931
workflows: ["repo-health-investigate"]

.github/workflows/repo-health-groom.lock.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ jobs:
348348
mkdir -p /tmp/gh-aw/safeoutputs
349349
mkdir -p /tmp/gh-aw/mcp-logs/safeoutputs
350350
cat > /opt/gh-aw/safeoutputs/config.json << 'GH_AW_SAFE_OUTPUTS_CONFIG_EOF'
351-
{"hide_comment":{"max":50},"missing_data":{},"missing_tool":{},"noop":{"max":1},"update_issue":{"max":1}}
351+
{"hide_comment":{"max":50},"missing_data":{},"missing_tool":{},"noop":{"max":1},"update_issue":{"max":1,"target":"*"}}
352352
GH_AW_SAFE_OUTPUTS_CONFIG_EOF
353353
cat > /opt/gh-aw/safeoutputs/tools.json << 'GH_AW_SAFE_OUTPUTS_TOOLS_EOF'
354354
[
@@ -1098,7 +1098,7 @@ jobs:
10981098
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
10991099
env:
11001100
GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }}
1101-
GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"hide_comment\":{\"max\":50},\"missing_data\":{},\"missing_tool\":{},\"update_issue\":{\"allow_body\":true,\"max\":1}}"
1101+
GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"hide_comment\":{\"max\":50},\"missing_data\":{},\"missing_tool\":{},\"update_issue\":{\"allow_body\":true,\"max\":1,\"target\":\"*\"}}"
11021102
with:
11031103
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
11041104
script: |

.github/workflows/repo-health-groom.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ tools:
1717
safe-outputs:
1818
update-issue:
1919
max: 1
20+
target: "*"
2021
hide-comment:
2122
max: 50
2223
---

.github/workflows/repo-health-investigate.lock.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ jobs:
384384
mkdir -p /tmp/gh-aw/safeoutputs
385385
mkdir -p /tmp/gh-aw/mcp-logs/safeoutputs
386386
cat > /opt/gh-aw/safeoutputs/config.json << 'GH_AW_SAFE_OUTPUTS_CONFIG_EOF'
387-
{"add_comment":{"max":1},"missing_data":{},"missing_tool":{},"noop":{"max":1}}
387+
{"add_comment":{"max":1,"target":"*"},"missing_data":{},"missing_tool":{},"noop":{"max":1}}
388388
GH_AW_SAFE_OUTPUTS_CONFIG_EOF
389389
cat > /opt/gh-aw/safeoutputs/tools.json << 'GH_AW_SAFE_OUTPUTS_TOOLS_EOF'
390390
[
@@ -1052,7 +1052,7 @@ jobs:
10521052
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
10531053
env:
10541054
GH_AW_AGENT_OUTPUT: ${{ env.GH_AW_AGENT_OUTPUT }}
1055-
GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1},\"missing_data\":{},\"missing_tool\":{}}"
1055+
GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1,\"target\":\"*\"},\"missing_data\":{},\"missing_tool\":{}}"
10561056
with:
10571057
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
10581058
script: |

.github/workflows/repo-health-investigate.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ tools:
3434
safe-outputs:
3535
add-comment:
3636
max: 1
37+
target: "*"
3738
---
3839

3940
# Repo Health — Investigate Finding

0 commit comments

Comments
 (0)