Merge pull request #499 from alirezarezvani/claude/audit-pr-498-workflow-Pa5Ku
This commit is contained in:
3
.github/workflows/ci-quality-gate.yml
vendored
3
.github/workflows/ci-quality-gate.yml
vendored
@@ -31,6 +31,9 @@ jobs:
|
||||
echo "target_ref=${{ github.event.inputs.ref }}" >> "$GITHUB_OUTPUT"
|
||||
elif [[ "${{ github.event_name }}" == "repository_dispatch" && -n "${{ github.event.client_payload.ref }}" ]]; then
|
||||
echo "target_ref=${{ github.event.client_payload.ref }}" >> "$GITHUB_OUTPUT"
|
||||
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
||||
# Use commit SHA for PRs — branch names from forks don't exist in the base repo
|
||||
echo "target_ref=${{ github.event.pull_request.head.sha }}" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "target_ref=${{ github.head_ref || github.ref_name }}" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
11
.github/workflows/claude-code-review.yml
vendored
11
.github/workflows/claude-code-review.yml
vendored
@@ -114,6 +114,7 @@ jobs:
|
||||
|
||||
- name: Post fallback review note (quota/timeout)
|
||||
if: steps.claude-review.outcome != 'success'
|
||||
continue-on-error: true # Fork PRs have read-only GITHUB_TOKEN
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
@@ -129,3 +130,13 @@ jobs:
|
||||
- Proceed with manual review to unblock
|
||||
`
|
||||
})
|
||||
|
||||
- name: Write review status to job summary
|
||||
if: steps.claude-review.outcome != 'success'
|
||||
run: |
|
||||
echo "## ⚠️ Automated Review Skipped" >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "" >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "The Claude review could not complete." >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "For fork PRs this is expected — OIDC tokens are unavailable." >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "" >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "- Retry from the Actions tab, or proceed with manual review." >> "$GITHUB_STEP_SUMMARY"
|
||||
|
||||
9
.github/workflows/skill-security-audit.yml
vendored
9
.github/workflows/skill-security-audit.yml
vendored
@@ -191,8 +191,17 @@ jobs:
|
||||
echo "report_file=$REPORT_FILE" >> "$GITHUB_OUTPUT"
|
||||
echo "exit_code=$OVERALL_EXIT" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Post audit results to job summary
|
||||
if: always()
|
||||
run: |
|
||||
REPORT_FILE="${{ steps.audit.outputs.report_file }}"
|
||||
if [ -f "$REPORT_FILE" ]; then
|
||||
cat "$REPORT_FILE" >> "$GITHUB_STEP_SUMMARY"
|
||||
fi
|
||||
|
||||
- name: Post audit results as PR comment
|
||||
if: always()
|
||||
continue-on-error: true # Fork PRs have read-only GITHUB_TOKEN
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
|
||||
Reference in New Issue
Block a user