Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/claude-documentation-reviewer.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Documentation Reviewer

on:
pull_request:
pull_request_target:
types: [opened, edited, reopened, synchronize]
paths:
- '**.md'
Expand All @@ -23,8 +23,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
# Ensures the action checks out the PR branch instead of main
ref: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
# Use head SHA (not branch ref) to prevent TOCTOU attacks from forks
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0 # Need full history to compare with base branch

- name: Get changed markdown files
Expand Down