Skip to content
Merged
Changes from 1 commit
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
21 changes: 16 additions & 5 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,11 @@
sudo apt-get update
sudo apt-get install -y unzip jq

- name: Checkout base repo
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Determine PR number
id: mode
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail

Expand All @@ -61,7 +58,21 @@
exit 1
fi

PR_HEAD_REF="$(gh pr view "$PR_NUMBER" --repo "${{ github.repository }}" --json headRefName --jq .headRefName)"

echo "pr_number=$PR_NUMBER" >> "$GITHUB_OUTPUT"
echo "pr_head_ref=$PR_HEAD_REF" >> "$GITHUB_OUTPUT"

- name: Checkout base repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Fetch PR branch
shell: bash
run: |
set -euo pipefail
git fetch origin "${{ steps.mode.outputs.pr_head_ref }}"
Comment thread Fixed

- name: Resolve review state

Check failure

Code scanning / CodeQL

Checkout of untrusted code in trusted context High

Potential execution of untrusted code on a privileged workflow (
pull_request_target
)
Potential execution of untrusted code on a privileged workflow (
issue_comment
)
id: state
Expand Down
Loading