-
-
Notifications
You must be signed in to change notification settings - Fork 1
ci: use Opus 5 for PR review and mount upstream ANTLR for comparison #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -40,6 +40,23 @@ jobs: | |||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||
| fetch-depth: 0 | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| # This runtime is a port of ANTLR's reference implementation, so a faithful | ||||||||||||||||||||||||||||||||
| # review of changes to the ported algorithms usually needs to compare | ||||||||||||||||||||||||||||||||
| # against upstream behavior. Clone the reference tree into a side directory | ||||||||||||||||||||||||||||||||
| # (kept out of the checkout above via a distinct `path`) the reviewer can | ||||||||||||||||||||||||||||||||
| # read and grep. Pinned to the v4.13.2 tag the runtime targets everywhere | ||||||||||||||||||||||||||||||||
| # else (see CLAUDE.md) — `master`/`dev` would surface post-4.13.2 changes a | ||||||||||||||||||||||||||||||||
| # reviewer could wrongly flag as divergence. Shallow single-tag snapshot: | ||||||||||||||||||||||||||||||||
| # the reviewer reads source, not git history. The directory name is | ||||||||||||||||||||||||||||||||
| # deliberately non-hidden so ripgrep-backed search (Grep) descends into it. | ||||||||||||||||||||||||||||||||
| - name: Checkout upstream ANTLR (reference for review comparisons) | ||||||||||||||||||||||||||||||||
| uses: actions/checkout@v7 | ||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||
| repository: antlr/antlr4 | ||||||||||||||||||||||||||||||||
| ref: "4.13.2" | ||||||||||||||||||||||||||||||||
| path: antlr-upstream | ||||||||||||||||||||||||||||||||
| fetch-depth: 1 | ||||||||||||||||||||||||||||||||
|
Comment on lines
+52
to
+58
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win Disable credential persistence for the reference checkout. This checkout is read-only and public, so add Proposed fix with:
repository: antlr/antlr4
ref: "4.13.2"
path: antlr-upstream
fetch-depth: 1
+ persist-credentials: false📝 Committable suggestion
Suggested change
🧰 Tools🪛 zizmor (1.26.1)[warning] 52-58: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false (artipacked) [error] 53-53: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy) (unpinned-uses) 🤖 Prompt for AI AgentsSources: MCP tools, Linters/SAST tools |
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| - name: Install Dependencies | ||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||
| sudo apt-get update | ||||||||||||||||||||||||||||||||
|
|
@@ -90,7 +107,7 @@ jobs: | |||||||||||||||||||||||||||||||
| use_sticky_comment: true | ||||||||||||||||||||||||||||||||
| claude_args: | | ||||||||||||||||||||||||||||||||
| --effort max | ||||||||||||||||||||||||||||||||
| --model "claude-opus-4-8[1m]" | ||||||||||||||||||||||||||||||||
| --model "claude-opus-5[1m]" | ||||||||||||||||||||||||||||||||
| --no-chrome | ||||||||||||||||||||||||||||||||
| --dangerously-skip-permissions | ||||||||||||||||||||||||||||||||
| plugins: "code-review@claude-code-plugins" | ||||||||||||||||||||||||||||||||
|
|
@@ -104,6 +121,14 @@ jobs: | |||||||||||||||||||||||||||||||
| prompt: | | ||||||||||||||||||||||||||||||||
| /code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }} | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| UPSTREAM REFERENCE: This crate ports ANTLR (antlr/antlr4). A read-only | ||||||||||||||||||||||||||||||||
| checkout of tag v4.13.2 — the version it targets — is at `antlr-upstream/` | ||||||||||||||||||||||||||||||||
| (Java runtime: `runtime/Java/src/org/antlr/v4/runtime/`; generator: | ||||||||||||||||||||||||||||||||
| `tool/`). For changes to ported logic (ATN/prediction, lexer/parser | ||||||||||||||||||||||||||||||||
| simulation, serialized-ATN decoding, generated-code shape), compare | ||||||||||||||||||||||||||||||||
| against it and cite the upstream file:line. Flag unintended divergence | ||||||||||||||||||||||||||||||||
| from ANTLR semantics; treat documented deviations as intentional. | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| IMPORTANT (non-interactive CI run): You cannot pause and resume. Any | ||||||||||||||||||||||||||||||||
| sub-agents you spawn return their results synchronously within this same | ||||||||||||||||||||||||||||||||
| session — never end your turn saying you will "wait for" them. Once their | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: ophi-dev/antlr-rust-runtime
Length of output: 847
🌐 Web query:
actions checkout v7 release commit SHA💡 Result:
The release v7.0.0 of actions/checkout was published on June 18, 2026 [1]. The commit SHA for this specific tag (v7.0.0) is 3d3c42e5aac5ba805825da76410c181273ba90b1 [2]. As of today, July 24, 2026, the latest release in the v7 series is v7.0.1, which was released on July 20, 2026 [3][4]. You can always verify the most current commit SHAs by checking the tags page in the official GitHub repository [3].
Citations:
🏁 Script executed:
Repository: ophi-dev/antlr-rust-runtime
Length of output: 50385
🌐 Web query:
GitHub actions checkout v7.0.1 commit SHA actions/checkout v7.0.1💡 Result:
The GitHub Actions checkout action version v7.0.1 corresponds to the commit SHA 3d3c42e5aac5ba805825da76410c181273ba90b1 [1]. This release was published on July 20, 2026 [2][3]. The commit associated with this release, titled "prep v7.0.1 release (
#2531)", finalized the version bump from v7.0.0 to v7.0.1 [4][1].Citations:
Pin the checkout action to an immutable commit SHA.
actions/checkout@v7is an unpinned branch/tag reference. Replace it with the current full-length commit SHA for the desired v7 commit and leave the version in a comment.🧰 Tools
🪛 zizmor (1.26.1)
[error] 53-53: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents
Source: Linters/SAST tools