[CERT C Review Batch 2/5] Review proposed Rust categorization #351
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: Reviewer Bot Issue Comment Direct | |
| on: | |
| issue_comment: | |
| types: [created] | |
| permissions: | |
| contents: read | |
| env: | |
| STATE_ISSUE_NUMBER: '314' | |
| jobs: | |
| reviewer-bot-issue-comment-direct: | |
| if: ${{ github.event.issue.pull_request == null }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| # Temporary lock debt: contents:write is allowed only for the existing lock-ref API operations. | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| actions: read | |
| steps: | |
| - name: Install uv | |
| run: python -m pip install uv | |
| - name: Checkout trusted bot source | |
| uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
| with: | |
| ref: ${{ github.sha }} | |
| - name: Select trusted bot source | |
| id: bot-source | |
| uses: ./.github/actions/reviewer-bot-source | |
| - name: Run reviewer bot | |
| env: | |
| BOT_SRC_ROOT: ${{ steps.bot-source.outputs.bot-src-root }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| EVENT_NAME: issue_comment | |
| EVENT_ACTION: created | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| IS_PULL_REQUEST: 'false' | |
| ISSUE_STATE: ${{ github.event.issue.state }} | |
| ISSUE_TITLE: ${{ github.event.issue.title }} | |
| ISSUE_AUTHOR: ${{ github.event.issue.user.login }} | |
| ISSUE_HTML_URL: ${{ github.event.issue.html_url }} | |
| ISSUE_LABELS: ${{ toJson(github.event.issue.labels.*.name) }} | |
| COMMENT_BODY: ${{ github.event.comment.body }} | |
| COMMENT_AUTHOR: ${{ github.event.comment.user.login }} | |
| COMMENT_AUTHOR_ID: ${{ github.event.comment.user.id }} | |
| COMMENT_ID: ${{ github.event.comment.id }} | |
| COMMENT_CREATED_AT: ${{ github.event.comment.created_at }} | |
| COMMENT_USER_TYPE: ${{ github.event.comment.user.type }} | |
| COMMENT_AUTHOR_ASSOCIATION: ${{ github.event.comment.author_association }} | |
| COMMENT_SENDER_TYPE: ${{ github.event.sender.type }} | |
| COMMENT_INSTALLATION_ID: ${{ github.event.installation.id }} | |
| COMMENT_PERFORMED_VIA_GITHUB_APP: ${{ github.event.comment.performed_via_github_app.id > 0 && 'true' || 'false' }} | |
| REPO_OWNER: ${{ github.repository_owner }} | |
| REPO_NAME: ${{ github.event.repository.name }} | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| GITHUB_REF: ${{ github.ref }} | |
| WORKFLOW_RUN_ID: ${{ github.run_id }} | |
| WORKFLOW_NAME: ${{ github.workflow }} | |
| WORKFLOW_JOB_NAME: ${{ github.job }} | |
| run: uv run --project "$BOT_SRC_ROOT" reviewer-bot |