Commit Graph
643 Commits
Author SHA1 Message Date
Vlad Mocanu 83af4b27a6 Merge pull request 'chore: merge 1 upstream commits from anthropics/claude-code-action' (#50) from chore/upstream-sync-20260309 into main
Reviewed-on: https://git.wxs.ro/actions/claude-code-action/pulls/50
2026-03-11 06:20:16 +00:00
Vlad Mocanu dfeb5ef7c0 chore: regenerate workflows from KCL [skip ci] 2026-03-09 22:12:17 +02:00
renovate-bot beb62b34fd Merge pull request 'Update dependency kcl-ci to v1.43.0' (#51) from renovate/kcl-ci-1.x into main 2026-03-09 16:25:20 +00:00
Renovate Bot 38f7294fba Update dependency kcl-ci to v1.43.0 2026-03-09 18:25:19 +02:00
claude 12e1f33ef5 Merge remote-tracking branch 'upstream/main' into chore/upstream-sync-20260309 2026-03-09 08:00:20 +00:00
GitHub Actions 3428ca8991 chore: bump Claude Code to 2.1.71 and Agent SDK to 0.2.71 2026-03-07 00:11:30 +00:00
Vlad Mocanu 29d8a00b51 Merge pull request 'chore: merge 1 upstream commits from anthropics/claude-code-action' (#48) from chore/upstream-sync-20260306 into main
Reviewed-on: https://git.wxs.ro/actions/claude-code-action/pulls/48
2026-03-06 20:34:02 +00:00
claude 4885138cff Merge remote-tracking branch 'upstream/main' into chore/upstream-sync-20260306 2026-03-06 20:31:30 +00:00
GitHub Actions 26ec041249 chore: bump Claude Code to 2.1.70 and Agent SDK to 0.2.70 2026-03-06 01:18:43 +00:00
Vlad Mocanu 15ae31cd2f Merge pull request 'chore: merge 5 upstream commits from anthropics/claude-code-action' (#46) from chore/upstream-sync-20260305 into main
Reviewed-on: https://git.wxs.ro/actions/claude-code-action/pulls/46
2026-03-05 12:35:16 +00:00
claude 62f23790cb Merge remote-tracking branch 'upstream/main' into chore/upstream-sync-20260305 2026-03-05 12:30:25 +00:00
GitHub Actions 1fc90f3ed9 chore: bump Claude Code to 2.1.69 and Agent SDK to 0.2.69 2026-03-05 00:24:53 +00:00
forgejo-actions[bot] f257619d18 chore: regenerate workflows from KCL [skip ci] 2026-03-04 16:25:24 +00:00
renovate-bot 602d79f9f5 Merge pull request 'Update dependency kcl-ci to v1.42.0' (#44) from renovate/kcl-ci-1.x into main 2026-03-04 16:25:20 +00:00
Renovate Bot da5b998949 Update dependency kcl-ci to v1.42.0 2026-03-04 18:25:19 +02:00
GitHub Actions e763fe78de chore: bump Claude Code to 2.1.68 and Agent SDK to 0.2.68 2026-03-04 10:09:58 +00:00
GitHub Actions 5f8e5bfe5b chore: bump Claude Code to 2.1.66 and Agent SDK to 0.2.66 2026-03-04 01:17:58 +00:00
Vlad Mocanu 7f4c72d944 Merge pull request 'chore: merge 1 upstream commits from anthropics/claude-code-action' (#42) from chore/upstream-sync-20260302 into main
Reviewed-on: https://git.wxs.ro/actions/claude-code-action/pulls/42
2026-03-03 20:55:21 +00:00
forgejo-actions[bot] f8bb3fb562 chore: regenerate workflows from KCL [skip ci] 2026-03-02 18:25:23 +00:00
renovate-bot d81019d077 Merge pull request 'Update dependency kcl-ci to v1.41.1' (#43) from renovate/kcl-ci-1.x into main 2026-03-02 18:25:19 +00:00
Renovate Bot 1073da9bb3 Update dependency kcl-ci to v1.41.1 2026-03-02 20:25:18 +02:00
Octavian Guzu 73367208d0 Improve gh.sh wrapper: stricter validation and better error messages (#996)
- Use allowlist for issue view (numeric issue numbers only)
- Enforce zero positional args for issue list / label list
- Pin GH_HOST and GH_REPO explicitly to avoid ambient state
- Add descriptive error messages with usage examples
2026-03-02 16:38:23 +00:00
David Dworken 64c7a0ef71 Only expose permission_denials count in sanitized output (#993) 2026-03-02 09:21:16 +00:00
claude 64d7a57170 Merge remote-tracking branch 'upstream/main' into chore/upstream-sync-20260302 2026-03-02 08:00:20 +00:00
David Dworkenandclaude[bot] 220272d388 Change the default display_report option to false to restrict exposed data (#992)
* Change the default `display_report` option to false to restrict exposed data

* Update action.yml

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
2026-03-01 21:57:53 -08:00
Vlad Mocanu 2f9e75cbf5 Merge pull request 'chore: merge 1 upstream commits from anthropics/claude-code-action' (#40) from chore/upstream-sync-20260228 into main
Reviewed-on: https://git.wxs.ro/actions/claude-code-action/pulls/40
2026-02-28 07:13:16 +00:00
Vlad Mocanu 66654a1a19 docs: document Alpine/musl CLI install fallback 2026-02-28 09:11:41 +02:00
claude c160cc3ded Merge remote-tracking branch 'upstream/main' into chore/upstream-sync-20260228 2026-02-28 07:09:23 +00:00
Vlad Mocanu b8cb56d204 fix: use npm install for Claude Code CLI on musl/Alpine systems
The native binary (install.sh) requires posix_getdents which is only
available in Alpine edge (musl 1.2.5-r21+), not in any stable Alpine
release. Detect musl upfront via ldd and skip straight to npm install,
avoiding 15+ seconds of wasted retries on deterministic failures.

On glibc systems the native install path is unchanged with npm as a
fallback if it fails.
2026-02-28 09:08:26 +02:00
GitHub Actions ba7fa4bcf0 chore: bump Claude Code to 2.1.63 and Agent SDK to 0.2.63 2026-02-28 03:51:01 +00:00
Vlad MocanuandClaude Opus 4.6 f9c9754a16 docs: add Forgejo Support section to README with blog post link
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 18:06:23 +02:00
Vlad MocanuandClaude Opus 4.6 b4fa3bbd24 chore: bump kcl-ci to v1.40.2
Use generic email for mirror commits (noreply@forgejo-actions)
to avoid exposing internal domain on Codeberg.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 17:00:25 +02:00
Vlad MocanuandClaude Opus 4.6 90a9904e9f feat: mirror to Codeberg via SSH deploy key
Push clean copy (without .forgejo/ and prds/) to Codeberg on
each push to main. Uses SSH deploy key for authentication.

Also bumps kcl-ci to v1.40.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 16:52:39 +02:00
Vlad MocanuandClaude Opus 4.6 0e082695c9 chore: bump kcl-ci to v1.38.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 16:39:26 +02:00
Vlad MocanuandClaude Opus 4.6 f7e1e41b49 feat: add mirror branch workflow for Codeberg sync
Adds a mirror-branch workflow that copies main to a `codeberg` branch
excluding .forgejo/ and prds/ directories. Configure Forgejo push mirror
on this branch to sync a clean copy to Codeberg.

Also picks up updated allowed_tools from kcl-ci (adds bunx/npx patterns).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 16:36:34 +02:00
Vlad MocanuandClaude Opus 4.6 fba53fc8a0 chore: anonymize internal URLs for public release
Replace git.wxs.ro with forgejo.example.com in tests and docs.
Add public repo guidelines to CLAUDE.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 16:36:34 +02:00
Vlad MocanuandClaude Opus 4.6 b01c498dd9 docs: add Forgejo link and strikethrough GitHub-only quickstart note
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 16:36:34 +02:00
forgejo-actions[bot] 3b8f84bb55 chore: regenerate workflows from KCL [skip ci] 2026-02-27 12:25:30 +00:00
renovate-bot d15c0138d9 Merge pull request 'Update dependency kcl-ci to v1.37.2' (#38) from renovate/kcl-ci-1.x into main 2026-02-27 12:25:23 +00:00
Renovate Bot 1d17bd1825 Update dependency kcl-ci to v1.37.2 2026-02-27 14:25:22 +02:00
Vlad MocanuandClaude Opus 4.6 1dea90ac49 docs: update actor validation docs to reflect event-based guard
Self-trigger guard now only blocks comment/review events, not all
events. Updated CLAUDE.md, docs/forgejo.md API table, and known
limitations section.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 14:03:39 +02:00
Vlad Mocanu 348db11fe6 Merge pull request 'chore: merge 1 upstream commits from anthropics/claude-code-action' (#37) from chore/upstream-sync-20260227 into main
Reviewed-on: https://git.wxs.ro/actions/claude-code-action/pulls/37
2026-02-27 12:01:24 +00:00
claude b5cd1559f4 Merge remote-tracking branch 'upstream/main' into chore/upstream-sync-20260227 2026-02-27 11:58:44 +00:00
Vlad MocanuandClaude Opus 4.6 c97c9765c3 fix: allow Forgejo bot actor on non-comment events
The self-trigger guard blocked the claude bot on all events. Loop risk
only exists for comment/review events (tag mode). PR, workflow_dispatch,
and schedule events are safe — refined the guard to only block on
issue_comment, issues, pull_request_review, and
pull_request_review_comment events.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 13:57:59 +02:00
Vlad MocanuandClaude Opus 4.6 307af41a7f fix: allow test-action agent mode to run on claude bot PRs
The actor guard (github.actor != 'claude') was skipping test-agent-mode
on upstream-sync PRs. Refined the condition to only skip on non-PR events
(where tag mode loop risk exists) while allowing PR events through.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 13:52:28 +02:00
Vlad MocanuandClaude Opus 4.6 80082fbe8f fix: use label ID for Forgejo issue search and prevent duplicate labels
Forgejo's /issues?labels= filter requires integer IDs, not label names.
The workflow was searching by name (returning 0 results) then creating
a new issue every run.

Fix: look up label first, only create if missing, then use the ID for
both issue search and issue creation. This prevents both duplicate
issues and duplicate labels.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 13:38:41 +02:00
Vlad MocanuandClaude Opus 4.6 841717842f fix: improve upstream-sync Claude prompt and permissions
- Add command execution rules to prompt (no env prefixes, no 2>&1)
- Document pre-existing test failures so Claude doesn't waste turns
- Add Bash(echo:*) and Bash(cat:*) to allowed_tools
- Delete stale remote branches before creating new ones

Addresses 24 permission denials in last run where Claude spent
~15 of 47 turns on blocked commands.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 13:34:19 +02:00
Vlad MocanuandClaude Opus 4.6 f3e800e254 fix: use integer label IDs for Forgejo issue creation
Forgejo's create-issue API expects `labels` as `[int64]` (label IDs),
not `[{"name": "..."}]` like GitHub. The previous format caused a JSON
unmarshal error, silently returning null instead of creating the issue.

Changes:
- Split label step to create-if-missing then look up the ID
- Pass label ID as integer to issue creation: `labels: [169]`
- Add error handling: log API response if issue creation returns null
- Also cleaned up another duplicate upstream-sync label

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 13:21:52 +02:00
Vlad MocanuandClaude Opus 4.6 d1c8fd0946 chore: ignore root package.json/bun.lock in Renovate
These are managed by upstream — our fork syncs deps via the
upstream-sync workflow. Keep Renovate active for .forgejo/kcl-ci/
dependencies (kcl.mod git tags).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 13:19:17 +02:00
Vlad MocanuandClaude Opus 4.6 432243def1 fix: skip test-action for PRs created by claude bot
When Claude creates a PR (e.g. upstream-sync), the pull_request event
fires with actor=claude. The self-trigger guard in actor.ts blocks
this because actor 'claude' matches bot_name 'claude[bot]', causing
test-action to fail with "Blocking self-trigger" error.

Add `if: github.actor != 'claude'` to the test-agent-mode job.
Claude-created PRs (upstream syncs) don't need the integration test
since they're merge commits, not action code changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 13:17:19 +02:00