| name: Handle Comment Commands |
| on: |
| issue_comment: |
| types: [created] |
| |
| jobs: |
| handle-comment: |
| # Only run on comments on PRs, and only on commands starting with "@bazel-io ". |
| if: github.event.issue.pull_request && startsWith(github.event.comment.body, '@bazel-io ') |
| runs-on: ubuntu-latest |
| steps: |
| - name: Harden Runner |
| uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0 |
| with: |
| egress-policy: audit |
| |
| - name: Handle @bazel-io commands |
| uses: bazelbuild/continuous-integration/actions/bcr-pr-reviewer@47d5ff02f7c1108d72b1d9182bf64d43ce2c539e |
| with: |
| # This token needs to be updated annually on Feb 05. |
| token: ${{ secrets.BCR_PR_REVIEW_HELPER_TOKEN }} |
| action-type: 'handle_comment' |