Skip to content

Commit 5f9f082

Browse files
committed
update to use safe outputs
1 parent d4cc5ec commit 5f9f082

4 files changed

Lines changed: 14 additions & 41 deletions

File tree

workflows/daily-dependency-updates.md

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,10 @@ permissions: read-all
1313
safe-outputs:
1414
create-pull-request:
1515
draft: true
16+
create-issue:
17+
title-prefix: "${{ github.workflow }}"
1618

1719
tools:
18-
github:
19-
allowed:
20-
[
21-
create_or_update_file,
22-
create_branch,
23-
delete_file,
24-
create_issue,
25-
update_issue,
26-
add_issue_comment,
27-
update_pull_request,
28-
]
2920
claude:
3021
allowed:
3122
Edit:
@@ -34,8 +25,8 @@ tools:
3425
WebFetch:
3526
WebSearch:
3627
# Configure bash build commands here, or in .github/workflows/agentics/daily-dependency-updates.config.md or .github/workflows/agentics/build-tools.md
37-
Bash:
3828
# For YOLO mode, uncomment the following line
29+
#Bash:
3930
#- ":*
4031
---
4132

@@ -48,11 +39,9 @@ Your name is "${{ github.workflow }}". Your job is to act as an agentic coder fo
4839
- Use the `list_dependabot_alerts` tool to retrieve the list of Dependabot alerts.
4940
- Use the `get_dependabot_alert` tool to retrieve details of each alert.
5041

51-
2. Check for an existing PR starting with title "Daily Dependency Updates". Add your additional updates to that PR if it exists, otherwise create a new PR. Try to bundle as many dependency updates as possible into one PR. Test the changes to ensure they work correctly, if the tests don't pass then divide and conquer and create separate PRs for each dependency update.
52-
53-
> NOTE: If you didn't make progress on a particular dependency update, add a comment saying what you've tried, ask for clarification if necessary, and add a link to a new branch containing any investigations you tried.
42+
2. Create a new PR with title "${{ github.workflow }}". Try to bundle as many dependency updates as possible into one PR. Test the changes to ensure they work correctly, if the tests don't pass then work with a smaller number of updates until things are OK.
5443

55-
> NOTE: You can use the tools to list, get and add issue comments to add comments to pull reqests too.
44+
> NOTE: If you didn't make progress on particular dependency updates, create one overall issue saying what you've tried, ask for clarification if necessary, and add a link to a new branch containing any investigations you tried.
5645
5746
@include agentics/shared/no-push-to-main.md
5847

workflows/daily-perf-improver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for
137137

138138
4. Work towards your selected goal.. For the performance improvement goal you selected, do the following:
139139

140-
4a. Create a new branch.
140+
4a. Create a new branch starting with "perf/".
141141

142142
4b. Work towards the performance improvement goal you selected. This may involve:
143143
- Refactoring code

workflows/issue-triage.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ permissions: read-all
99

1010
safe-outputs:
1111
add-issue-label:
12-
max: 3
12+
max: 5
1313
add-issue-comment:
14-
max: 1
1514

1615
tools:
1716
claude:

workflows/pr-fix.md

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,15 @@ on:
55
reaction: "eyes"
66
stop-after: +48h
77

8-
permissions:
9-
contents: write # needed to push changes
10-
actions: read # needed to access workflow runs and job logs
11-
checks: read # needed to read check runs and status
12-
statuses: read # needed to read commit statuses
13-
issues: read # needed to create investigation issues
14-
pull-requests: write # needed to comment on PRs if failure is related
8+
permissions: read-all
9+
10+
safe-outputs:
11+
push-to-branch:
12+
create-issue:
13+
title-prefix: "${{ github.workflow }}"
14+
add-issue-comment:
1515

1616
tools:
17-
github:
18-
allowed: [
19-
get_workflow_run,
20-
list_workflow_jobs,
21-
get_job_logs,
22-
get_workflow_run_logs,
23-
get_commit,
24-
get_pull_request,
25-
get_pull_request_files,
26-
create_issue,
27-
add_issue_comment,
28-
search_issues,
29-
list_issues
30-
]
31-
3217
claude:
3318
allowed:
3419
Edit:

0 commit comments

Comments
 (0)