Skip to content

ci: notify OpenBot triage when an issue or PR is opened - #452

Merged
Pivii merged 1 commit into
developfrom
ci/openbot-triage
Dec 1, 2026
Merged

Pivii merged 1 commit into
developfrom
ci/openbot-triage

Conversation

@Pivii

@Pivii Pivii commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

What it does

Adds a single file, .github/workflows/openbot-triage.yml. When an issue or a pull request is opened, the job POSTs a small signed JSON event to OpenBot's triage webhook, so OpenBot can triage it in real time. The body carries identifiers only (repository, kind, number, author login, URL); no title and no text. OpenBot reads the rest with gh.

  • Triggers: issues: [opened] and pull_request_target: [opened] (so PRs from forks are seen too).
  • Headers: x-openbot-timestamp, x-openbot-delivery-id (gh-<run_id>-<run_attempt>), x-openbot-signature (sha256= + HMAC-SHA256 of <timestamp>.<delivery id>.<exact body bytes>).
  • Responses: 200/202 pass; 503 is retried 3 times, 30 s apart; anything else fails the job.
  • If the OPENBOT_TRIAGE_WEBHOOK_SECRET org secret is empty, the job sends nothing and passes.

Security

  • pull_request_target runs with the base repository's secrets, so the job has no checkout and never runs code from the PR.
  • permissions: {}: the GITHUB_TOKEN gets no permission; it is not used.
  • Every event value reaches the script through env:, never through ${{ github.event.* }} inside run:, so a crafted login or URL cannot inject shell.
  • The body is built with jq into a file, and that same file is signed and sent (--data-binary @file).
  • Neither the secret nor the signature is printed.

Identical file

Byte-for-byte copy of the file in getdictus/dictus-ios#1131 (head edc1cdbb6040e7b124a2f9eb17ab0e6347995dac). sha256 on both: 4e7886499685a3257b5dab4315d2cbb5218773c53012a161eac70fceaf979248.

actionlint

actionlint v1.7.12 (official release binary, checksum verified):

$ actionlint .github/workflows/openbot-triage.yml
(no output, exit 0)
$ actionlint .github/workflows/ci.yml .github/workflows/labeler.yml .github/workflows/release.yml
(no output, exit 0)

shellcheck was not installed on the machine, so actionlint did not run its shellcheck pass on the run: script.

Proof still to come

The real proof (a run in the Actions tab answered with HTTP 202, on a test issue) can only happen after merge, since the workflow runs from the default branch's context.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 52 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 45175371-7e9d-49aa-9dc3-19deea81eca8
Commits

Reviewing files that changed from the base of the PR and between 3419568 and 734ed16.

Files selected for processing: 1

  • .github/workflows/openbot-triage.yml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Pivii
Pivii merged commit 3073078 into develop Dec 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant