Repository navigation
Conversation
lucatume
left a comment
There was a problem hiding this comment.
.github/workflows/claude.yml: since v1.0.273, @claude sessions run in auto mode, so --allowedTools stops being a strict list. Calls it doesn't cover (gh pr merge, gh api -X DELETE) run if the safety review passes them, which undoes the read-only gh restriction the comment above claude_args relies on. Adding --permission-mode acceptEdits to claude_args keeps the old behavior, as the action documents: https://github.com/anthropics/claude-code-action/blob/v1.0.276/docs/usage.md#opting-out
|
Feel free to update the PR directly. There's no one behind the bot to react to your comment. |
claude-code-action v1.0.273 starts @claude sessions in auto mode, where --allowedTools is no longer a strict list: a call no rule covers, such as gh pr merge or gh api -X DELETE, runs if the safety review passes it. That undoes the read-only gh restriction this workflow relies on, since the prompt carries text from people who cannot invoke the job. Opt back into acceptEdits, the earlier default for @claude mentions, so uncovered calls are denied again; that is the boundary. Add deny rules for gh api and the common state-changing gh pr/issue/release verbs as a partial backstop: deny rules apply in every permission mode, so those still hold if the mode handling changes. The token Claude's shell sees is the app token the action also uses for comments and pushes, so it can't be narrowed to read-only here.
0329c96 to
ff760da
Compare
|
Pushed a fix for the auto mode change in
Narrowing the token wasn't an option: the app token that Not tested in CI. To verify after merge, mention |
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
Closes MONOREP-1542
This PR contains the following updates:
v1.0.269→v1.0.276Release Notes
anthropics/claude-code-action
v1.0.276Compare Source
Full Changelog: anthropics/claude-code-action@v1.0.275...v1.0.276
v1.0.275Compare Source
What's Changed
Other changes
Full Changelog: anthropics/claude-code-action@v1.0.274...v1.0.275
v1.0.274Compare Source
What's Changed
Other changes
Full Changelog: anthropics/claude-code-action@v1.0.273...v1.0.274
v1.0.273: (breaking changes)Compare Source
What's Changed
Other changes
Full Changelog: anthropics/claude-code-action@v1.0.272...v1.0.273
This release tightens what a Claude session can do, especially on content from people without write access. Workflows on
@v1get these changes automatically. Most keep working as they are, but check the items below if yours runs tests on outside pull requests, uses later steps after the action, or relies on--allowedToolsas a strict list.Sessions start in auto mode
A safety review now decides tool calls that no allow rule covers. Calls that used to be denied can run if the review passes, so
--allowedToolsis no longer a strict list. Workflows with apromptcan also edit workspace files without an allow rule.Opt out: set the earlier mode in
claude_args:--permission-mode acceptEditsfor@claudementions, or--permission-mode defaultfor workflows with aprompt.Sessions keep the earlier defaults if you set
allowed_non_write_users,allowed_bots, a customANTHROPIC_BASE_URLorpath_to_claude_code_executable. The same applies if yoursettingsinput is a file path, or sets a base URL or another permission mode.Code-running commands are denied on outside pull requests
If a pull request's author doesn't have write access, common commands such as
npm testandbun installare denied, even ifclaude_argsallows them. The run still succeeds, so check the log for a warning.Opt out:
restrict_untrusted_prs: false. This lets code from that pull request run in a job that holds your workflow's tokens.Only trusted text and runs start a session
promptandtrack_progress,label_triggerandassignee_triggernow apply.workflow_runalso checks the owner of the fork the run came from.Adjust:
label_triggerto your label, or to""to accept any label.workflow_runon outside contributions, add those users toallowed_non_write_usersand passgithub_token.There's no opt-out for the rest.
A session can't leave anything behind for later steps
GITHUB_ENV,GITHUB_PATHand git config are restored when the session ends, so a session's changes to them no longer reach later steps. Token revocation also ignores~/.curlrc, including a proxy set there.Git hooks are also off from before the checkout on pull requests covered by
restrict_untrusted_prs, so a push Claude makes on one of those won't upload Git LFS objects.Adjust: pass values to later steps with
GITHUB_OUTPUTor--json-schema. There's no opt-out.No token in
.git/configwhenallowed_botsis setThese workflows now use the same credential helper as
allowed_non_write_users, and it only answers for your GitHub server.Adjust: a later step that pushes through
origin, or fetches from it on a private repository, needs its own credentials:GH_TOKEN,GIT_ASKPASS, a credential saved for the usernamex-access-token, or its own remote URL. There's no opt-out.Stricter git commands in
@clauderuns--amend,--no-verify,--authorand flags that read a file.git commitorgit pushmust be inclaude_argsto cover these wrappers. One in a settings file doesn't.Opt out: add your own rule in
claude_args, such asBash(git commit:*)orBash(git push:*). This brings back what the wrappers block for that workflow.Signed commits from
promptruns go to their own branchWith
use_commit_signing, a run on an issue now commits toissue-N. A run on a pull request commits to its branch, or topr-Nif that branch isn't known to be in this repository. They used to reach the default branch or a branch named by a fork.Opt out: set
CLAUDE_BRANCHin the step'senvto choose the branch.v1.0.272Compare Source
What's Changed
Full Changelog: anthropics/claude-code-action@v1.0.271...v1.0.272
v1.0.271Compare Source
Full Changelog: anthropics/claude-code-action@v1.0.270...v1.0.271
v1.0.270Compare Source
What's Changed
New Contributors
Full Changelog: anthropics/claude-code-action@v1.0.269...v1.0.270
Configuration
📅 Schedule: (in timezone UTC)
* 0-3 * * 1)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.