Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .claude/scripts/createInlineComment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Secure proxy script to create an inline comment on a GitHub PR.
set -eu

readonly ALLOWED_RULES_FILE="${GITHUB_WORKSPACE}/.claude/allowed-rules.txt"
readonly ALLOWED_RULES_FILE="${ALLOWED_RULES_FILE:-${GITHUB_WORKSPACE}/.claude/allowed-rules.txt}"

# Print error and exit.
die() {
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/claude-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
run: |
"$GITHUB_WORKSPACE/.github/scripts/extractAllowedRules.sh" \
"$GITHUB_WORKSPACE/.claude/skills/coding-standards/rules" \
"$GITHUB_WORKSPACE/.claude/allowed-rules.txt"
"$RUNNER_TEMP/allowed-rules.txt"

- name: Load code review JSON schema
id: schema
Expand All @@ -82,6 +82,7 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
STRUCTURED_OUTPUT: ${{ steps.code-review.outputs.structured_output }}
ALLOWED_RULES_FILE: ${{ runner.temp }}/allowed-rules.txt
run: |
if [ -z "$STRUCTURED_OUTPUT" ]; then
echo "::error::Claude Code Action returned empty structured output"
Expand Down
Loading