Credentials. Keep the OpenAI key in repository secrets; fork pull requests normally cannot access them under pull_request.
Who it is forA repository maintainer who wants every new or updated pull request to get a consistent advisory review in GitHub Actions.
The problemMaintainers often repeat the same context-gathering work on every pull request, and reviewers need the output close to the code.
The outcomeA workflow run that appends the Markdown report to the job summary and, optionally, one updated PR comment that includes the reviewed head SHA.
What you need first
- Node.js 20 LTS or newer
- A checkout of the vuphongle/oss-pr-reviewer repository
- An OpenAI API key set as OPENAI_API_KEY (required for live reviews)
- A GITHUB_TOKEN is recommended to avoid anonymous GitHub API rate limits
- Network access to GitHub and OpenAI
Steps
- Create a workflow file with a pull_request trigger for opened, synchronize, and reopened events.
- Set permissions to contents: read and pull-requests: read for summary-only mode.
- Use
uses: vuphongle/[email protected]with github-token and openai-api-key set from repository secrets. - Add
post-comment: trueonly if you also grant pull-requests: write. - Check the job summary after a pull request run and treat the report as advisory.
Prompt for your agent
Add a GitHub Actions workflow to the target repository that uses vuphongle/[email protected] on pull_request events with summary-only permissions. Confirm the workflow YAML parses and that openai-api-key is read from secrets. Do not add pull_request_target or enable comment posting without asking.
Caveat. The Action does not create annotations or enforce a merge policy, and comment publication is best-effort under concurrent runs.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for vuphongle/oss-pr-reviewer and "Add an advisory AI review to pull request workflows"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer