Skip to content

Commit d4cc5ec

Browse files
committed
update to use safe outputs
1 parent 6dfbc58 commit d4cc5ec

12 files changed

Lines changed: 56 additions & 60 deletions

workflows/ci-doctor.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ permissions: read-all
1515

1616
safe-outputs:
1717
create-issue:
18+
title-prefix: "${{ github.workflow }}"
1819
add-issue-comment:
1920

2021
tools:

workflows/daily-accessibility-review.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ permissions: read-all
1212

1313
safe-outputs:
1414
create-issue:
15+
title-prefix: "${{ github.workflow }}"
1516
max: 5
1617
add-issue-comment:
1718
max: 5

workflows/daily-dependency-updates.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ on:
88

99
timeout_minutes: 15
1010

11-
permissions:
12-
contents: write # needed to push changes to a new branch in the repository in preparation for the pull request
13-
pull-requests: write # needed to create pull requests for the changes
14-
issues: read
15-
discussions: read
16-
actions: read
17-
checks: read
18-
statuses: read
19-
security-events: read
11+
permissions: read-all
12+
13+
safe-outputs:
14+
create-pull-request:
15+
draft: true
2016

2117
tools:
2218
github:

workflows/daily-perf-improver.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ on:
88

99
timeout_minutes: 30
1010

11+
permissions: read-all
12+
1113
safe-outputs:
1214
create-issue:
15+
title-prefix: "${{ github.workflow }}"
1316
max: 5
1417
add-issue-comment:
1518
max: 5
1619
create-pull-request:
20+
draft: true
1721

1822
tools:
1923
github:
@@ -186,8 +190,6 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for
186190

187191
5e. Add a very brief comment to the issue from step 1a if it exists, saying you have worked on the particular performance goal and linking to the pull request you created.
188192

189-
5f. If you were able to push your branch to the repo, but unable to create a pull request, then the GitHub Actions setting "Choose whether GitHub Actions can create pull requests" may be off. Create an issue describing the problem with a link to https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#preventing-github-actions-from-creating-or-approving-pull-requests and exit the entire workflow.
190-
191193
6. If you didn't succeed in improving performance, create an issue with title starting with "${{ github.workflow }}", summarizing similar information to above.
192194

193195
7. If you encounter any unexpected failures or have questions, add comments to the pull request or issue to seek clarification or assistance.

workflows/daily-plan.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,18 @@ on:
88

99
stop-after: +30d # workflow will no longer trigger after 30 days. Remove this and recompile to run indefinitely
1010

11-
permissions:
12-
issues: write # needed to create or update issues
13-
contents: read
14-
pull-requests: read
11+
permissions: read-all
12+
13+
safe-outputs:
14+
create-issue: # needed to create the project plan issue
15+
title-prefix: "${{ github.workflow }}"
16+
update-issue: # needed to update the project plan issue if it already exists
17+
target: "*" # can update one single issue
18+
body: # can update the issue body only
1519

1620
timeout_minutes: 15
1721

1822
tools:
19-
github:
20-
allowed:
21-
[
22-
create_issue,
23-
update_issue,
24-
]
2523
claude:
2624
allowed:
2725
WebFetch:
@@ -36,21 +34,21 @@ Your job is to act as a planner for the GitHub repository ${{ github.repository
3634

3735
1. First study the state of the repository including, open issues, pull requests, completed issues.
3836

39-
- As part of this, look for the issue labelled "project-plan", which is the existing project plan. Read the plan, and any comments on the plan. If no issue is labelled "project-plan" ignore this step.
37+
1a. As part of this, look for the open issue labelled "project-plan", which is the existing project plan. Read the plan, and any comments on the plan. If no issue is labelled "project-plan" ignore this step.
4038

41-
- You can read code, search the web and use other tools to help you understand the project and its requirements.
39+
1b. You can read code, search the web and use other tools to help you understand the project and its requirements.
4240

4341
2. Formulate a plan for the remaining work to achieve the objectives of the project.
4442

45-
3. Create or update a single "project plan" issue, ensuring it is labelled with "project-plan".
43+
2a. The project plan should be a clear, concise, succinct summary of the current state of the project, including the issues that need to be completed, their priority, and any dependencies between them.
4644

47-
- The project plan should be a clear, concise, succinct summary of the current state of the project, including the issues that need to be completed, their priority, and any dependencies between them.
45+
2b. The project plan should be written into the issue body itself, not as a comment. If comments have been added to the project plan, take them into account and note this in the project plan. Never add comments to the project plan issue.
4846

49-
- The project plan should be written into the issue body itself, not as a comment. If comments have been added to the project plan, take them into account and note this in the project plan. Never add comments to the project plan issue.
47+
2c. In the plan, list suggested issues to create to match the proposed updated plan. Don't create any issues, just list the suggestions. Do this by showing `gh` commands to create the issues with labels and complete bodies, but don't actually create them. Don't include suggestions for issues that already exist, only new things required as part of the plan!
5048

51-
- In the plan, list suggested issues to create to match the proposed updated plan. Don't create any issues, just list the suggestions. Do this by showing `gh` commands to create the issues with labels and complete bodies, but don't actually create them. Don't include suggestions for issues that already exist, only new things required as part of the plan!
49+
3. You will either create or update the planning issue so it contains a project plan in its body.
5250

53-
- Do not create any other issues, just the project plan issue. Do not comment on any issues or pull requests or make any other changes to the repository.
51+
3a. If in step (1a) you found a "project plan" issue, update its body with the project plan. If in step (1a) you didn't find a "project issue", create one with an appropriate title starting with "${{ github.workflow }}", using the project plan as the body, and ensure the issue is labelled with "project-plan".
5452

5553
@include agentics/shared/tool-refused.md
5654

workflows/daily-progress.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,6 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for
147147

148148
5e. Add a very brief comment to the issue from step 1a if it exists, saying you have worked on the particular goal and linking to the pull request you created.
149149

150-
5f. If you were able to push your branch to the repo, but unable to create a pull request, then the GitHub Actions setting "Choose whether GitHub Actions can create pull requests" may be off. Create an issue describing the problem with a link to https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#preventing-github-actions-from-creating-or-approving-pull-requests and exit the entire workflow.
151-
152150
6. If you didn't succeed, create an issue with title starting with "${{ github.workflow }}", summarizing similar information to above.
153151

154152
7. If you encounter any unexpected failures or have questions, add comments to the pull request or issue to seek clarification or assistance.

workflows/daily-qa.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ on:
99

1010
timeout_minutes: 15
1111

12+
permissions: read-all
13+
1214
safe-outputs:
1315
create-issue:
16+
title-prefix: "${{ github.workflow }}"
1417
add-issue-comment:
1518
max: 5
1619

@@ -70,7 +73,7 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic QA enginee
7073

7174
4. Search for any previous "Daily QA Report" open issues in the repository. Read the latest one. If the status is essentially the same as the current state of the repository, then add a very brief comment to that issue saying you didn't find anything new and exit. Close all the previous open Daily QA Report issues.
7275

73-
5. Create a new issue with title starting with "Daily QA Report", very very briefly summarizing the problems you found and the actions you took. Use note form. Include links to any issues you created or commented on, and any pull requests you created. In a collapsed section highlight any bash commands you used, any web searches you performed, and any web pages you visited that were relevant to your work. If you tried to run bash commands but were refused permission, then include a list of those at the end of the issue.
76+
5. Create a new issue with title starting with "${{ github.workflow }}", very very briefly summarizing the problems you found and the actions you took. Use note form. Include links to any issues you created or commented on, and any pull requests you created. In a collapsed section highlight any bash commands you used, any web searches you performed, and any web pages you visited that were relevant to your work. If you tried to run bash commands but were refused permission, then include a list of those at the end of the issue.
7477

7578
6. Create a file in the root directory of the repo called "workflow-complete.txt" with the text "Workflow completed successfully".
7679

workflows/daily-team-status.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ on:
77

88
stop-after: +30d # workflow will no longer trigger after 30 days. Remove this and recompile to run indefinitely
99

10+
permissions: read-all
11+
1012
safe-outputs:
1113
create-issue:
14+
title-prefix: "${{ github.workflow }}"
15+
update-issue:
16+
target: "*" # can update one single issue
1217

1318
timeout_minutes: 15
1419

15-
permissions: read-all
16-
1720
tools:
1821
claude:
1922
allowed:
@@ -57,7 +60,7 @@ tools:
5760
* all files you read to generate the data for the report
5861
* places you didn't have time to read or search, but would have liked to
5962

60-
Create a new GitHub issue with title starting with "Daily Team Status" containing a markdown report with your findings. Use links where appropriate.
63+
Create a new GitHub issue with title starting with "${{ github.workflow }}" containing a markdown report with your findings. Use links where appropriate.
6164

6265
Only a new issue should be created, no existing issues should be adjusted.
6366

workflows/daily-test-improver.md

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,18 @@ on:
99

1010
timeout_minutes: 30
1111

12-
permissions:
13-
contents: write # needed to create branches, files, and pull requests in this repo without a fork
14-
issues: write # needed to create report issue
15-
pull-requests: write # needed to create results pull request
16-
actions: read
17-
checks: read
18-
statuses: read
12+
permissions: read-all
13+
14+
safe-outputs:
15+
create-issue: # needed to create report issue
16+
title-prefix: "${{ github.workflow }}"
17+
update-issue: # needed to update the report issue if it already exists
18+
target: "*" # can update any one single issue
19+
body: # can update the issue body only
20+
create-pull-request: # needed to create results pull request
21+
draft: true
1922

2023
tools:
21-
github:
22-
allowed:
23-
[
24-
create_issue,
25-
update_issue,
26-
add_issue_comment,
27-
create_or_update_file,
28-
create_branch,
29-
delete_file,
30-
push_files,
31-
update_pull_request,
32-
]
3324
claude:
3425
allowed:
3526
Edit:
@@ -119,9 +110,9 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for
119110

120111
3d. Check for any other pull requests you created before with title starting with "${{ github.workflow }}". Don't work on adding any tests that overlap with what was done there.
121112

122-
3e. Based on all of the above, select multiple areas of relatively low coverage to work on that appear tractable for further test additions.
113+
3e. Based on all of the above, select an area of relatively low coverage to work on that appear tractable for further test additions.
123114

124-
4. For each area identified, do the following:
115+
4. Do the following:
125116

126117
4a. Create a new branch
127118

@@ -159,8 +150,6 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for
159150

160151
4i. Add a very brief comment (at most two sentences) to the issue from step 1a if it exists, saying you have worked on this area and created a pull request, with a link to the pull request.
161152

162-
4j. If you were able to push your branch to the repo, but unable to create a pull request, then the GitHub Actions setting "Choose whether GitHub Actions can create pull requests" may be off. Create an issue describing the problem with a link to https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#preventing-github-actions-from-creating-or-approving-pull-requests and exit the entire workflow.
163-
164153
5. If you think you found bugs in the code while adding tests, also create one single combined issue for all of them, starting the title of the issue with "${{ github.workflow }}". Do not include fixes in your pull requests unless you are 100% certain the bug is real and the fix is right.
165154

166155
6. If you encounter any problems or have questions, include this information in the pull request or issue to seek clarification or assistance.

workflows/issue-triage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ on:
55
stop-after: +30d # workflow will no longer trigger after 30 days. Remove this and recompile to run indefinitely
66
reaction: eyes
77

8+
permissions: read-all
9+
810
safe-outputs:
911
add-issue-label:
1012
max: 3
1113
add-issue-comment:
1214
max: 1
1315

14-
permissions: read-all
15-
1616
tools:
1717
claude:
1818
allowed:

0 commit comments

Comments
 (0)