Skip to content

An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.

chore: update Claude workflows to use stable version and enhance permissions (#1494)

Ralph Khreish3b2901011905
diff --git a/.github/workflows/claude-docs-trigger.yml b/.github/workflows/claude-docs-trigger.yml
index 140f89e3..ee2ac2d8 100644
--- a/.github/workflows/claude-docs-trigger.yml
+++ b/.github/workflows/claude-docs-trigger.yml
@@ -47,11 +47,15 @@ jobs:
- name: Trigger Claude workflow
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ COMMIT_SHA: ${{ steps.changed-files.outputs.commit_sha }}
+ COMMIT_MSG: ${{ steps.changed-files.outputs.commit_message }}
+ CHANGED_FILES: ${{ steps.changed-files.outputs.changed_files }}
+ COMMIT_DIFF: ${{ steps.changed-files.outputs.commit_diff }}
run: |
# Trigger the Claude docs updater workflow with the change information
gh workflow run claude-docs-updater.yml \
--ref next \
- -f commit_sha="${{ steps.changed-files.outputs.commit_sha }}" \
- -f commit_message=${{ steps.changed-files.outputs.commit_message }} \
- -f changed_files=${{ steps.changed-files.outputs.changed_files }} \
- -f commit_diff=${{ steps.changed-files.outputs.commit_diff }}
\ No newline at end of file
+ -f commit_sha="$COMMIT_SHA" \
+ -f commit_message="$COMMIT_MSG" \
+ -f changed_files="$CHANGED_FILES" \
+ -f commit_diff="$COMMIT_DIFF"
\ No newline at end of file
diff --git a/.github/workflows/claude-docs-updater.yml b/.github/workflows/claude-docs-updater.yml
index 93f0887f..a6a4f1ee 100644
--- a/.github/workflows/claude-docs-updater.yml
+++ b/.github/workflows/claude-docs-updater.yml
@@ -42,21 +42,12 @@ jobs:
echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT
- name: Run Claude Code to Update Documentation
- uses: anthropics/claude-code-action@beta
+ uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
- timeout_minutes: "30"
- mode: "agent"
github_token: ${{ secrets.GITHUB_TOKEN }}
- experimental_allowed_domains: |
- .anthropic.com
- .github.com
- api.github.com
- .githubusercontent.com
- registry.npmjs.org
- .task-master.dev
- base_branch: "next"
- direct_prompt: |
+ claude_args: "--max-turns 30"
+ prompt: |
You are a documentation specialist. Analyze the recent changes pushed to the 'next' branch and update the documentation accordingly.
Recent changes:
diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml
index a18aa959..94a0a850 100644
--- a/.github/workflows/claude.yml
+++ b/.github/workflows/claude.yml
@@ -19,9 +19,9 @@ jobs:
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
runs-on: ubuntu-latest
permissions:
- contents: read
- pull-requests: read
- issues: read
+ contents: write
+ pull-requests: write
+ issues: write
id-token: write
steps:
- name: Checkout repository
@@ -31,6 +31,6 @@ jobs:
- name: Run Claude Code
id: claude
- uses: anthropics/claude-code-action@beta
+ uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}