Repository navigation
ci: notify OpenBot triage when an issue or PR is opened - #452
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou'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. View limit details
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. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 withgh.issues: [opened]andpull_request_target: [opened](so PRs from forks are seen too).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>).OPENBOT_TRIAGE_WEBHOOK_SECRETorg secret is empty, the job sends nothing and passes.Security
pull_request_targetruns with the base repository's secrets, so the job has no checkout and never runs code from the PR.permissions: {}: theGITHUB_TOKENgets no permission; it is not used.env:, never through${{ github.event.* }}insiderun:, so a crafted login or URL cannot inject shell.jqinto a file, and that same file is signed and sent (--data-binary @file).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):
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