Skip to content

Update anthropics/claude-code-action action to v1.0.276 - #54976

Open
matticbot wants to merge 2 commits into
trunkfrom
renovate/github-actions-minor-version-bumps
Open

matticbot wants to merge 2 commits into
trunkfrom
renovate/github-actions-minor-version-bumps

Conversation

@matticbot

@matticbot matticbot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Closes MONOREP-1542

This PR contains the following updates:

Package Type Update Change
anthropics/claude-code-action action patch v1.0.269 → v1.0.276

Release Notes

anthropics/claude-code-action

v1.0.276

Compare Source

Full Changelog: anthropics/claude-code-action@v1.0.275...v1.0.276

v1.0.275

Compare Source

What's Changed

Other changes

Full Changelog: anthropics/claude-code-action@v1.0.274...v1.0.275

v1.0.274

Compare 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

⚠️ Breaking changes
Other changes

Full Changelog: anthropics/claude-code-action@v1.0.272...v1.0.273

⚠️ Upgrade notes: new security defaults

This release tightens what a Claude session can do, especially on content from people without write access. Workflows on @v1 get 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 --allowedTools as 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 --allowedTools is no longer a strict list. Workflows with a prompt can also edit workspace files without an allow rule.

Opt out: set the earlier mode in claude_args: --permission-mode acceptEdits for @claude mentions, or --permission-mode default for workflows with a prompt.

Sessions keep the earlier defaults if you set allowed_non_write_users, allowed_bots, a custom ANTHROPIC_BASE_URL or path_to_claude_code_executable. The same applies if your settings input 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 test and bun install are denied, even if claude_args allows 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
  • Slash commands and the trusted request come only from text the person who triggered the run wrote. Claude still reads a labeled or assigned issue's body for context.
  • Editing or deleting someone else's comment or review no longer starts a run.
  • With prompt and track_progress, label_trigger and assignee_trigger now apply.
  • workflow_run also checks the owner of the fork the run came from.
  • A run started by a bot's activity on a pull request also needs that pull request's author to have write access or be an allowed bot.

Adjust:

  • If your workflow filters labels itself, set label_trigger to your label, or to "" to accept any label.
  • For workflow_run on outside contributions, add those users to allowed_non_write_users and pass github_token.

There's no opt-out for the rest.

A session can't leave anything behind for later steps

GITHUB_ENV, GITHUB_PATH and 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_OUTPUT or --json-schema. There's no opt-out.

No token in .git/config when allowed_bots is set

These 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 username x-access-token, or its own remote URL. There's no opt-out.

Stricter git commands in @claude runs
  • Commits go through a wrapper that rejects flags outside a short list, including --amend, --no-verify, --author and flags that read a file.
  • Pushes can't be forced and only update the branch the session was set up on: a new branch, or the open pull request's branch.
  • A deny rule for git commit or git push must be in claude_args to cover these wrappers. One in a settings file doesn't.

Opt out: add your own rule in claude_args, such as Bash(git commit:*) or Bash(git push:*). This brings back what the wrappers block for that workflow.

Signed commits from prompt runs go to their own branch

With use_commit_signing, a run on an issue now commits to issue-N. A run on a pull request commits to its branch, or to pr-N if 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_BRANCH in the step's env to choose the branch.

v1.0.272

Compare Source

What's Changed

Full Changelog: anthropics/claude-code-action@v1.0.271...v1.0.272

v1.0.271

Compare Source

Full Changelog: anthropics/claude-code-action@v1.0.270...v1.0.271

v1.0.270

Compare Source

What's Changed

  • release: push tags with the release deploy key (enables tag-ruleset enforcement) by @​chrnorm in #​1650

New Contributors

Full Changelog: anthropics/claude-code-action@v1.0.269...v1.0.270


Configuration

📅 Schedule: (in timezone UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@matticbot
matticbot requested a review from a team as a code owner November 16, 2026 02:30
@matticbot matticbot added [Status] Needs Review This PR is ready for review. Task labels Nov 16, 2026
@matticbot
matticbot requested a review from a team November 16, 2026 02:30
@github-actions github-actions Bot added the Actions GitHub actions used to automate some of the work around releases and repository management label Nov 16, 2026

@lucatume lucatume left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.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

@anomiex

anomiex commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Feel free to update the PR directly. There's no one behind the bot to react to your comment.

renovate-bot and others added 2 commits November 17, 2026 08:54
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.
@lucatume
lucatume force-pushed the renovate/github-actions-minor-version-bumps branch from 0329c96 to ff760da Compare November 17, 2026 07:54
@lucatume

Copy link
Copy Markdown
Contributor

Pushed a fix for the auto mode change in .github/workflows/claude.yml:

  • --permission-mode acceptEdits in claude_args. The action appends claude_args after its own --permission-mode auto and the last one wins (tag/index.ts). That makes --allowedTools strict again, as usage.md#opting-out documents.
  • --disallowedTools for gh api and the common state-changing gh pr/issue/release verbs, as a partial backstop. Deny rules apply in every permission mode (docs).

Narrowing the token wasn't an option: the app token that gh sees is the one the action uses to comment and push (run.ts, install-mcp-server.ts), and the job's permissions: block doesn't limit it.

Not tested in CI. To verify after merge, mention @claude on a test PR and ask it to run gh pr merge; the call should be denied.

@matticbot

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate 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.

⚠️ Warning: custom changes will be lost.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Actions GitHub actions used to automate some of the work around releases and repository management [Status] Needs Review This PR is ready for review. Task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants