Claude React On Review Dispatch #748
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Claude React On Review Dispatch" | |
| on: | |
| workflow_run: | |
| workflows: ["Claude React On Review"] | |
| types: [completed] | |
| jobs: | |
| dispatch: | |
| runs-on: ubuntu-latest | |
| if: github.event.workflow_run.conclusion == 'success' | |
| permissions: | |
| contents: read | |
| actions: write | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2 | |
| with: | |
| egress-policy: audit | |
| - name: Download review context | |
| id: download | |
| uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 | |
| continue-on-error: true | |
| with: | |
| name: review-context | |
| run-id: ${{ github.event.workflow_run.id }} | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Trigger Claude PR Review | |
| if: steps.download.outcome == 'success' | |
| env: | |
| GH_TOKEN: ${{ secrets.PHPSTAN_BOT_TOKEN }} | |
| run: | | |
| pr_number=$(cat pr_number.txt) | |
| review_id=$(cat review_id.txt) | |
| gh workflow run claude-pr-review.yml \ | |
| -f pr_number="$pr_number" \ | |
| -f review_id="$review_id" \ | |
| --repo phpstan-bot/phpstan-src |