Skip to content

🏗️🔧:check actions in jobs named with or env - #1926

Merged
openinf-commit-queue[bot] merged 1 commit into
livefrom
claude/full-audit-0e491i-pin-check-scope
Oct 19, 2026
Merged

openinf-commit-queue[bot] merged 1 commit into
livefrom
claude/full-audit-0e491i-pin-check-scope

Conversation

@DerekNonGeneric

@DerekNonGeneric DerekNonGeneric commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Requested by DerekNonGeneric · project thread

Before: the pin check skipped every uses: that had a with: or env: key anywhere above it. So a job whose id was with or env could run unpinned actions without the check noticing.

After: a with: or env: key that sits directly under jobs: is treated as a job id, so that job's steps are checked. Step inputs, env vars, and reusable-workflow inputs named uses are still ignored.

How: this ports OpenINF/.github#942: a small isKeyed helper, plus a parent check in the skip. build/tasks/verify-workflows.test.mts covers both job names and the input cases that must still pass. The two job-name cases fail without the fix. verify.unit (194/194), verify.ts, verify.workflows, verify.md, verify.filenames, spelling and the build all pass locally.

Summary by CodeRabbit

  • Bug Fixes
    • Workflow validation now correctly checks checkout references in jobs named with or env, while continuing to allow uses values in step inputs and reusable-workflow jobs.
  • Tests
    • Added coverage for these workflow validation cases, including the expected pass and failure outcomes.

verify-workflows skipped every uses: with a with: or env: key anywhere
above it, so that inputs named "uses" were not read as actions. A job
whose id is "with" or "env" matched too, and its unpinned steps were
never checked.

The skip now ignores a with: or env: key that sits directly under
jobs:, since that is a job id rather than an input or variable map.
Tests cover both job names and the input cases that must still pass.

Signed-off-by: Derek Lewis <DerekNonGeneric@inf.is>
Assisted-by: Claude-Code:claude-opus-5
@netlify

netlify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for gh-pages-openinf ready!

Name Link
🔨 Latest commit 93df850
🔍 Latest deploy log https://app.netlify.com/projects/gh-pages-openinf/deploys/6ad60ed506fa996e127b1b41
😎 Deploy Preview https://deploy-preview-1926--gh-pages-openinf.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@DerekNonGeneric DerekNonGeneric self-assigned this Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: f4695ad5-5d34-407e-8420-db42b63d761a
📥 Commits

Reviewing files that changed from the base of the PR and between 758e83f and 93df850.

📒 Files selected for processing: 2
  • build/tasks/verify-workflows.test.mts
  • build/tasks/verify/verify-workflows.mts

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

📝 Walkthrough

The workflow verifier now scans references in steps under jobs named with or env. Tests cover those job names and confirm that uses inputs remain excluded in steps and reusable-workflow jobs.

Changes: Workflow reference filtering

Layer / File(s) Summary
Job-name-aware workflow filtering
build/tasks/verify/verify-workflows.mts, build/tasks/verify-workflows.test.mts
The verifier checks whether a matching with or env ancestor is directly under jobs before excluding a reference. Tests expect exit status 1 for jobs named with or env with a checkout step, and status 0 for step and reusable-workflow inputs named uses.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 93df8

The workflow check and its tests have no identified issue blocking merge.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies the main change: checking actions in jobs named with or env. The emojis and punctuation add minor noise but do not make the title unclear.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files.
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.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Copy link
Copy Markdown
Member Author

@coderabbitai review


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@DerekNonGeneric DerekNonGeneric added the 🚀 Status: Commit Queue Land this pull request when its checks pass label Oct 19, 2026 — with Claude
@openinf-commit-queue
openinf-commit-queue Bot merged commit 7e88830 into live Oct 19, 2026
15 checks passed
@openinf-commit-queue openinf-commit-queue Bot removed the 🚀 Status: Commit Queue Land this pull request when its checks pass label Oct 19, 2026
@openinf-commit-queue
openinf-commit-queue Bot deleted the claude/full-audit-0e491i-pin-check-scope branch October 19, 2026 13:53
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