-
Notifications
You must be signed in to change notification settings - Fork 0
ci(qodo): adopt reusable OSS pr-agent review lane #24
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 |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # pr-agent (OSS) caller — adopts the wave-foundation reusable lane. | ||
| # Engine: OSS Qodo Merge on our OPENAI_KEY (trial-independent). SSOT pinned by SHA. | ||
| name: pr-agent (OSS) | ||
| on: | ||
| pull_request: | ||
| types: [opened, reopened, ready_for_review, synchronize] | ||
| issue_comment: | ||
| types: [created] | ||
|
Comment on lines
+7
to
+8
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. 3. Triggers on issue comments issue_comment events fire for both PRs and regular issues, and this workflow has no filter to ensure it only runs for pull request comments. As a result, ordinary issue comments will also invoke the PR-agent lane, creating unnecessary runs and noise. Agent Prompt
|
||
|
|
||
| permissions: | ||
| issues: write | ||
| pull-requests: write | ||
| contents: read | ||
|
Comment on lines
+10
to
+13
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. 🔍 Caller permissions rely on the reusable workflow's needs matching Top-level Was this helpful? React with 👍 or 👎 to provide feedback.
devin-ai-integration[bot] marked this conversation as resolved.
|
||
|
|
||
| concurrency: | ||
| group: pr-agent-${{ github.event.pull_request.number || github.event.issue.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| pr_agent: | ||
| uses: wave-av/wave-foundation/.github/workflows/reusable-pr-agent.yml@150ffae24f63e207ab81430fa64cb2b1e5c01546 # post-#1191 | ||
| secrets: | ||
| OPENAI_KEY: ${{ secrets.OPENAI_KEY }} | ||
|
Comment on lines
+20
to
+23
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. 🔴 New review automation workflow can never run in this public repository The new automation is wired to a helper workflow that lives in a private repository ( Why the cross-repo call fails: public repo consuming a private reusable workflow
Was this helpful? React with 👍 or 👎 to provide feedback.
devin-ai-integration[bot] marked this conversation as resolved.
Comment on lines
+22
to
+23
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. 2. Ungated secret-backed comment runs Any issue_comment creation triggers this workflow and supplies OPENAI_KEY to the called job, with no caller-side gating on comment content or author trust. This enables unauthorized triggering of secret-backed runs (cost/abuse risk) and increases the blast radius if the called workflow mishandles untrusted inputs. Agent Prompt
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
🔍 issue_comment trigger fires on plain issues too, with no guard
The
issue_comment: [created]trigger fires for comments on regular issues, not just pull requests. There is noif:condition (e.g.github.event.issue.pull_request) to limit the job to PR comments, so every comment on any issue in this repo starts a run of the reusable lane. Whether that is harmless depends entirely on guards insidewave-av/wave-foundation/.github/workflows/reusable-pr-agent.yml@150ffae, which is not visible in this repo — worth confirming that the reusable workflow itself short-circuits non-PR comments (and bot-authored comments), otherwise consider adding the guard here.Was this helpful? React with 👍 or 👎 to provide feedback.