Documentation
Review public pull requests with GitHub Actions
Add one inkspect.yml YAML workflow to request Inkspect reviews for a public repository, with no API keys or GitHub App installation.
Updated 27 November 2026Before you start
Use a public, active GitHub.com repository with GitHub Actions enabled and an existing CI workflow that runs on pull_request events. This action requests sponsored reviews for approved public repositories. Private repositories use the regular Inkspect Cloud connection flow.
You do not need an Inkspect account, API key, GitHub App installation or OIDC permission to send the request. Repository approval and review limits still apply.
1. Add inkspect.yml
Create .github/workflows/inkspect.yml with the example below. Merge it into your repository’s default branch before trying it on another pull request. Keep the file at this exact path.
Change ci-workflow: CI to the top-level name of your existing CI workflow, such as Test and Build. This is not a job name or a filename. Keep the Inkspect workflow and step names as shown.
name: Inkspect Code Review
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
permissions: {}
concurrency:
group: inkspect-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
review:
name: Inkspect Code Review
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Request Inkspect Cloud Engine
uses: inkspect-code-review/inkspect-action@v1
with:
ci-workflow: CI
Optional: Skip PRs from release branches
Replace the if line under jobs.review with the condition below. The Inkspect job skips drafts and PRs whose source branch starts with release/, such as release/1.2.
if: ${{ !github.event.pull_request.draft && !startsWith(github.head_ref, 'release/') }}Why permissions: {} stays in the file
permissions: {} requests no additional access: it turns off configurable GITHUB_TOKEN permissions instead of inheriting repository or organization defaults. The action does not read or send that token. Keep this line; no id-token: write or repository write permission is needed.
Do not add a checkout step, token input or model key. Use the pull_request trigger shown above. GitHub’s normal Actions policies still apply, including maintainer approval for some fork workflows.
2. Open or update a pull request
After merging the setup, open a non-draft PR, push a new commit to an existing PR, reopen it, or mark a draft ready for review. In GitHub Actions, look for Inkspect Code Review and its Request Inkspect Cloud Engine step.
A successful action means the request was received. It does not mean the review has finished, the repository has been approved, or the changes are safe to merge. The action summary includes a request ID.
3. Wait for approval and CI
The Inkspect team receives your first request and decides whether to enable sponsored reviews for the repository. A request waiting for repository approval does not start a model call.
Once enabled, Inkspect checks the public repository, default-branch installation, current PR commit and selected CI workflow independently with GitHub. Review begins after the required CI run succeeds. Future eligible requests are handled automatically within the repository’s approved limits.
The two-minute workflow timeout covers sending the request, not the cloud review. Inkspect builds or reuses a repository index and retrieves related code to review the changes. Your own CI remains responsible for running your project’s tests.
4. Read the review and save it to your dashboard
Inkspect posts the review on the pull request from its review account. New reviews include a summary, code quality and security scores, findings when present, and a link to the full public report. Older reports may not contain scores.
The public report shows the reviewed commit, scope and retrieved code context. Anyone with access to the public report can read it without signing in.
Choose Add this repository to my dashboard in the report header. If you are signed out, sign in first, then confirm adding the repository to your workspace. Open OSS reviews in the dashboard to browse its available past and future public reports. Saving a repository does not start another review or connect a private repository.
If a review has not appeared
- No workflow run: check Actions is enabled, the PR is not a draft and the workflow file is present.
- Request rejected with HTTP 403: merge .github/workflows/inkspect.yml into the default branch, confirm the repository is public, then open or update a PR.
- Green action but no review: repository approval, successful CI or review capacity may still be pending. Check ci-workflow matches the CI workflow name and that CI passed for the current PR commit.
- HTTP 409: the PR changed or is no longer eligible. Run the action for its latest commit.
- HTTP 429 or a temporary connection error: retry later. If it persists, include the repository, PR link and request ID when contacting support.
Data, versions and removal
The action sends public identifiers: repository name, PR number, head commit, workflow run ID and attempt, and CI workflow name. It does not upload checked-out files. After approval, the cloud service obtains public source from GitHub for indexing and review; relevant source context is processed by the configured AI services.
The example uses @v1. If you require a fixed version, replace it with a published 40-character commit SHA from the action repository.
Removing inkspect.yml from the default branch prevents new action requests. If the repository also has sponsored server monitoring enabled, contact Inkspect to disable that approval. Removing a repository from your dashboard only removes the saved association.
Every line deserves a second look.
Explore the product