chore: update allowed and disallowed tools for WebFetch based on event type
This commit is contained in:
parent
097a56187f
commit
f06106e32b
|
|
@ -90,8 +90,8 @@ jobs:
|
|||
display_report: 'true'
|
||||
claude_args: |
|
||||
--model ${{ vars.OPENCODE_MODEL }}
|
||||
--allowedTools "Bash(base64:*),Bash(cat:*),Bash(echo:*),Bash(gh api:*),Bash(gh auth:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh repo view:*),Bash(gh search:*),Bash(git diff:*),Bash(git log:*),Bash(git show:*),Bash(git status:*),Bash(grep:*),Bash(head:*),Bash(ls:*),Bash(rg:*),Bash(sed:*),Bash(tail:*),Bash(wc:*),WebFetch(domain:docs.rsshub.app)"
|
||||
--disallowedTools "WebSearch"
|
||||
--allowedTools "Bash(base64:*),Bash(cat:*),Bash(echo:*),Bash(gh api:*),Bash(gh auth:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh repo view:*),Bash(gh search:*),Bash(git diff:*),Bash(git log:*),Bash(git show:*),Bash(git status:*),Bash(grep:*),Bash(head:*),Bash(ls:*),Bash(rg:*),Bash(sed:*),Bash(tail:*),Bash(wc:*),${{ github.event_name == 'workflow_dispatch' && 'WebFetch,WebSearch' || 'WebFetch(domain:docs.rsshub.app)' }}"
|
||||
${{ github.event_name != 'workflow_dispatch' && '--disallowedTools "WebSearch"' || '' }}
|
||||
prompt: |
|
||||
A pull request has been created or updated in this repository.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue