Skip to content

Releases

v1.0.5 — Reliable version resolution, cosign signature check

Choose a tag to compare

@ajianaz ajianaz released this 09 Oct 09:07
f4804f3

Fixed

  • cora-version: latest no longer falls back to the ancient v0.3.0 when the GitHub API call fails (this made the review step exit 1 immediately). It now resolves through the GitHub API authenticated with github-token, then through the /releases/latest redirect, and stops with a clear error if both fail. Tags are validated.

Added

  • Signature verification. cora-code v0.18.0+ signs checksums-sha256.txt with cosign keyless. When the release has a checksums-sha256.txt.sigstore.json, the action verifies it with cosign verify-blob (exact identity .../cora-code/.github/workflows/release.yml@refs/tags/<tag>, GitHub OIDC issuer) before installing the binary. A bad signature always aborts.
  • Input require-signature (default false): also fail when the release has no signature. Older releases keep installing, with a notice.
  • Outputs cora-version and signature-verified.
  • Test workflow covering signed, unsigned and require-signature paths.

No breaking changes; stays on the v1 line.

v1.0.4 — Fix false error on clean code reviews

Choose a tag to compare

@ajianaz ajianaz released this 06 Aug 10:52
5a927ac

Every clean PR was showing a fake error.

You push a simple docs change. Cora reviews it, finds nothing wrong, exits clean. But the PR comment says "Cora was unable to reach the LLM API after retries." You check the logs, the LLM is fine. You re-run the workflow, same thing.

Turns out the detection logic had a bad assumption baked in: if the SARIF has zero rules, it must be an LLM failure. But that's also what a successful review looks like when the code is clean. Zero issues, zero rules.

Two bugs compounded this:

The shell retry never worked. sys.exit(0) inside a try block raises SystemExit, which gets caught by the bare except: below it. Both print(1) and print(0) execute, and the shell variable ends up with "1\n0" — a string that fails integer comparison. The retry logic was dead code.

The JS comment logic misclassified clean reviews. rules.length === 0 was the sole fallback signal. Clean code triggers it every time.

Both fixed. The detection now looks for the specific "could not complete" message string in the SARIF results, which only appears when cora's LLM call actually fails.

Before: Every PR with clean code → error comment
After: Every PR with clean code → "No issues found"

If you pin to @v1 or @v1.0.4, you get the fix. No workflow changes needed.

v1.0.2

Choose a tag to compare

@ajianaz ajianaz released this 03 Aug 09:04
654efb4

v1.0.2

Fixed

  • pipefail-safe version resolution — set -e + pipefail no longer aborts the resolve step before fallback logic when GitHub API is rate-limited or unreachable.

v1.0.1 — Fork PR permission fix

Choose a tag to compare

@ajianaz ajianaz released this 27 Jun 07:32
625520e

Fixes

  • Wrap PR comment API calls in try/catch — fork PRs with read-only GITHUB_TOKEN no longer fail the check-run (#2)

v1.0.0

Choose a tag to compare

@ajianaz ajianaz released this 08 Jun 03:27

Cora AI Code Review v1.0.0

Initial release of the cora-review-action GitHub Action.

Features

  • AI-powered PR code review using cora-cli
  • Posts formatted PR comment with findings
  • Uploads SARIF to GitHub Code Scanning
  • Retry + checksum verified binary download
  • BYOK — works with any OpenAI-compatible LLM

Usage

- uses: codecoradev/cora-review-action@v1
  with:
    github-token: ${{ secrets.GITHUB_TOKEN }}
    cora-api-key: ${{ secrets.CORA_API_KEY }}