chore: update Claude workflows to use stable version and enhance permissions

This commit is contained in:
Ralph Khreish
2025-12-09 15:30:49 +01:00
parent 37917b18f6
commit c1231c67d4
3 changed files with 15 additions and 20 deletions

View File

@@ -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 }}
-f commit_sha="$COMMIT_SHA" \
-f commit_message="$COMMIT_MSG" \
-f changed_files="$CHANGED_FILES" \
-f commit_diff="$COMMIT_DIFF"

View File

@@ -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:

View File

@@ -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 }}