t3code icon indicating copy to clipboard operation
t3code copied to clipboard

ci: SHA-pin actions in pr-size workflow and drop dead job

Open kridaydave opened this issue 4 months ago • 3 comments

Hardened .github/workflows/pr-size.yml:

  • SHA-pinned actions/checkout and actions/github-script (was floating major).
  • Removed the sync-label-definitions job, which could never run (its if-condition contradicted the workflow trigger).
  • Updated docs/project/good-first-prs.md status.

YAML structure verified; label job still wired correctly.


[!NOTE] Low Risk CI-only changes; PR size labeling behavior is unchanged aside from no longer auto-creating/updating label colors and descriptions in the repo.

Overview Hardens .github/workflows/pr-size.yml by pinning actions/checkout and actions/github-script to commit SHAs instead of floating @v4/@v8 tags, and documents why the pull_request_target checkout step stays on the base branch only.

Removes the sync-label-definitions job, which could never run because its if: github.event_name != 'pull_request_target' conflicted with a workflow that only triggers on pull_request_target. prepare-config now emits label name values only (no color/description), since nothing in the remaining label job needed those fields.

Adds docs/project/good-first-prs.md, a contributor audit backlog, and marks the pr-size checkout bump as done in that doc.

Reviewed by Cursor Bugbot for commit 94a474913a79c2288b3cb061706dad187878c8c2. Bugbot is set up for automated code reviews on this repo. Configure here.

[!NOTE]

Pin actions to commit SHAs and remove label-sync job in pr-size workflow

  • Pins actions/github-script and actions/checkout to specific commit SHAs in pr-size.yml instead of floating major version tags.
  • Removes the sync-label-definitions job, which previously created and updated PR size label color/description via the GitHub Issues API.
  • The prepare-config output now includes only label name fields, dropping color and description.

Macroscope summarized 94a4749.

kridaydave avatar Jul 18 '26 19:07 kridaydave

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

[!IMPORTANT]

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 77aaf980-e8c5-4c3d-bb29-9676528a7611

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • [ ] 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • [ ] Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands.

coderabbitai[bot] avatar Jul 18 '26 19:07 coderabbitai[bot]

Approvability

Verdict: Approved

CI workflow cleanup (SHA-pinning actions, removing dead job) and new contributor documentation. No runtime behavior changes. The open review comment is a low-severity doc inconsistency that doesn't block approval.

You can customize Macroscope's approvability policy. Learn more.

macroscopeapp[bot] avatar Jul 18 '26 19:07 macroscopeapp[bot]

Closing as part of the open-PR backlog sweep (wave 1).

Reason: Jul CI chore (SHA-pin pr-size) with unstable checks; not worth the review bandwidth.

Reopen if this is still wanted and you’re willing to rebase onto current main.

juliusmarminge avatar Sep 07 '26 22:09 juliusmarminge