From d29bf64aae601e031af94878fbbcf83116807779 Mon Sep 17 00:00:00 2001 From: Stephen Freudenthaler Date: Fri, 13 Mar 2026 21:00:42 -0400 Subject: [PATCH] fix: upgrade to ai-workflows@v2.0.0 (claude-code-action@v1 GA) Breaking change migration from dotCMS/ai-workflows v1.0.0 -> v2.0.0: - direct_prompt -> prompt - allowed_tools (multiline) -> claude_args CLI format - All three jobs updated (interactive, automatic-review, rollback-safety-check) Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ai_claude-orchestrator.yml | 23 ++++++-------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ai_claude-orchestrator.yml b/.github/workflows/ai_claude-orchestrator.yml index cd269bdf50ef..884fac30c80f 100644 --- a/.github/workflows/ai_claude-orchestrator.yml +++ b/.github/workflows/ai_claude-orchestrator.yml @@ -80,12 +80,10 @@ jobs: ) ) ) - uses: dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v1.0.0 + uses: dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v2.0.0 with: trigger_mode: interactive - allowed_tools: | - Bash(git status) - Bash(git diff) + claude_args: '--allowedTools "Bash(git status),Bash(git diff)"' timeout_minutes: 15 runner: ubuntu-latest enable_mention_detection: true # Uses built-in @claude mention detection @@ -110,14 +108,12 @@ jobs: !contains(github.event.pull_request.body, '@claude') && !contains(github.event.pull_request.body, '@Claude') && !contains(github.event.pull_request.body, '@CLAUDE') - uses: dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v1.0.0 + uses: dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v2.0.0 with: trigger_mode: automatic - direct_prompt: | + prompt: | Review this PR. Flag anything that looks wrong, risky, or worth a second look: bad assumptions, missing edge cases, design problems, security issues. Skip praise. If it is clean, say so in one line. - allowed_tools: | - Bash(git status) - Bash(git diff) + claude_args: '--allowedTools "Bash(git status),Bash(git diff)"' timeout_minutes: 15 runner: ubuntu-latest enable_mention_detection: false @@ -143,7 +139,7 @@ jobs: uses: dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v2.0.0 with: trigger_mode: automatic - direct_prompt: | + prompt: | You are a dotCMS rollback-safety analyst. Determine whether the changes in this PR are safe to roll back to the previous release. STEP 1 — Read the rollback-unsafe categories reference: @@ -177,12 +173,7 @@ jobs: No comment needed. Be specific: quote actual file names and code lines, not generic descriptions. - allowed_tools: | - Bash(git diff*) - Bash(git log*) - Bash(cat docs/core/ROLLBACK_UNSAFE_CATEGORIES.md) - Bash(gh pr comment*) - Bash(gh pr edit*) + claude_args: '--allowedTools "Bash(git diff*),Bash(git log*),Bash(cat docs/core/ROLLBACK_UNSAFE_CATEGORIES.md),Bash(gh pr comment*),Bash(gh pr edit*)"' timeout_minutes: 15 runner: ubuntu-latest enable_mention_detection: false