Skip to content

ci: add review-gate, OpenSSF Scorecard and Dependabot cooldown - #5

Merged
ricardofrantz merged 5 commits into
mainfrom
ci/review-gate-scorecard
Nov 14, 2026
Merged

ricardofrantz merged 5 commits into
mainfrom
ci/review-gate-scorecard

Conversation

@ricardofrantz

@ricardofrantz ricardofrantz commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Changes:

  • review-gate.yml (waits for the CodeRabbit and cubic check runs on the head commit; fails if cubic did not complete or CodeRabbit was off or errored; warns when CodeRabbit is rate limited or skips a later push after a finished review) and scorecard.yml (OpenSSF Scorecard, weekly, SARIF upload); permissions are least-privilege and every action is pinned to a full commit SHA, same files as machine-made/pi-effort

View guided diff

Summary by CodeRabbit

  • Chores
    • Pull requests now undergo automated checks for completed, successful reviews, with clear failure or warning results when reviews are missing or unsuccessful.
    • Added automated security scorecard reporting on a weekly schedule and after selected repository changes. Results are saved and submitted for code scanning.

…tance

Changes:
- review-gate.yml (waits for the CodeRabbit and cubic check runs on the head commit; fails if cubic did not complete or CodeRabbit was off or errored; warns when CodeRabbit is rate limited or skips a later push after a finished review) and scorecard.yml (OpenSSF Scorecard, weekly, SARIF upload); permissions are least-privilege and every action is pinned to a full commit SHA, same files as machine-made/pi-effort

Co-authored-by: Ricardo Frantz <4220623+ricardofrantz@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Adds a pull-request review gate that evaluates CodeRabbit and cubic checks. Adds a scheduled and event-triggered Scorecard workflow that publishes SARIF results.

Changes: Pull-request review gate

Layer / File(s) Summary
Workflow entry and check lookup
.github/workflows/review-gate.yml
The workflow runs on selected pull-request events, excluding draft PRs and PRs from Dependabot or Renovate. Helpers retrieve check runs and search PR commits for a successful CodeRabbit Finished check, covering up to 250 commits.
Poll and evaluate review results
.github/workflows/review-gate.yml
The workflow polls for up to 36 iterations. It requires cubic’s completed check to have the title AI review completed and conclusion success. It applies failure, warning, and notice conditions to CodeRabbit results, including incremental-review skips.

OpenSSF Scorecard

Layer / File(s) Summary
Run Scorecard and publish results
.github/workflows/scorecard.yml
The workflow runs on branch-protection rule changes, a weekly schedule, pushes to main, and manual dispatch. It runs Scorecard with scoped permissions, saves the SARIF file as a five-day artifact, and uploads it to code scanning.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Merge Risk: Minimal · up to 33c88

This PR adds a review gate and a weekly Scorecard workflow, both of which affect CI only. No concrete defect was found. The one open question is whether CodeRabbit publishes check runs for this repository, which the maintainers can confirm after merge by watching the first runs.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names two of the three changes (review-gate and OpenSSF Scorecard) and omits the Dependabot cooldown, which is a real part of the changeset. The workflow additions match the title's main sub…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names two of the three changes (review-gate and OpenSSF Scorecard) and omits the Dependabot cooldown, which is a real part of the changeset. The workflow additions match the title's main subject, so the title is related to the changes. The summary does not mention a Dependabot cooldown, so that part is not verifiable from the provided context.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Simplify code

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML; Path: .coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 6b7327bc-63e0-4f1d-bfd7-73f33436ba36
Commits

Reviewing files that changed from the base of the PR and between 18eed26 and 33c88ec.

Files selected for processing: 2

  • .github/workflows/review-gate.yml
  • .github/workflows/scorecard.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2 files

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

Comment thread .github/workflows/review-gate.yml Resolved
Comment thread .github/workflows/scorecard.yml Resolved
jac-made Bot and others added 4 commits November 14, 2026 00:32
… requires success for Finished

Commit listing follows pagination; the last poll no longer sleeps; a Finished title needs a success conclusion and stale is rejected; gh errors reach the log.

Co-authored-by: Ricardo Frantz <4220623+ricardofrantz@users.noreply.github.com>
gh api prints the HTTP error body to stdout, so the fallback value was appended to it and the count test could pass; the value is now replaced on failure.

Co-authored-by: Ricardo Frantz <4220623+ricardofrantz@users.noreply.github.com>
…effort 479a885)

Commit listing paginated, gh error bodies no longer pass the review count, Finished needs success, CodeRabbit lookup filtered by check name, documented skip titles accepted, re-run hint, 15 min Scorecard timeout.

Co-authored-by: Ricardo Frantz <4220623+ricardofrantz@users.noreply.github.com>
A failed commit listing gets its own error, a PR-scoped concurrency group cancels superseded gate runs, the historical lookup reads all check attempts, the failure message asks for a full review, and a manual Scorecard run on a non-default branch is skipped.

Co-authored-by: Ricardo Frantz <4220623+ricardofrantz@users.noreply.github.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

Comment thread .github/workflows/review-gate.yml Resolved
@ricardofrantz
ricardofrantz merged commit 072cd73 into main Nov 14, 2026
5 checks passed
@ricardofrantz
ricardofrantz deleted the ci/review-gate-scorecard branch November 14, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant