Skip to content

fix: complete tracking-resolver selector conformance - #184

Merged
kyle-sexton merged 1 commit into
mainfrom
codex/issue-178-selector-conformance-followup
Jul 21, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
codex/issue-178-selector-conformance-followup

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Jul 21, 2026 •

Copy link
Copy Markdown
Member

Summary

  • extend selector-conformance.yml pull-request and main-push path filters to cover the canonical tracking-issue resolver, renderer, shell/render tests, and all three generated workflow consumers
  • run bash .github/scripts/find-tracking-issue.test.sh directly in the selector unit job

Why

PR #181 delivered the shared tracking-issue resolver for #178, but it merged before the selector-conformance trigger and shell-test wiring corrections could be pushed. Without these paths, changes limited to the resolver source, renderer, tests, link-check.yml, or queue-monitor-liveness.yml could skip this focused conformance workflow.

GitHub's workflow syntax documents that a workflow with a paths filter runs when at least one changed path matches, so every source and generated consumer that can invalidate conformance must be listed for both pull_request and push:
https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#onpushpull_requestpull_request_targetpathspaths-ignore

GitHub also documents invoking repository scripts directly from a run step:
https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idstepsrun

Impact

This completes the remaining selector-conformance acceptance criteria from #178 without changing resolver behavior.

Verification

  • node --test .github/scripts/*.test.cjs — 206/206 passed
  • bash .github/scripts/find-tracking-issue.test.sh
  • bash .github/scripts/osv-scan-guard.test.sh
  • bash .github/scripts/zizmor-sarif-guard.test.sh
  • bash .github/scripts/osv-release-digest.test.sh
  • node .github/scripts/render-find-tracking-issue.cjs --check
  • shfmt -d and shellcheck on resolver source/test
  • repository-wide actionlint -shellcheck=
  • git diff --check

Related

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@claude

claude Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 20s —— View job


PR Review

  • Load tools
  • Read changed file and diff
  • Review for correctness, security, and CLAUDE.md alignment
  • Post findings

Scope: Single file, .github/workflows/selector-conformance.yml — 14 additions, 0 deletions. Changes are purely additive: 6 new path-filter entries in each trigger block and one new test step in selector-unit.


Path filter additions

All six new paths were verified to exist in the repository:

Added path Exists
.github/workflows/link-check.yml ✓
.github/workflows/queue-monitor-liveness.yml ✓
.github/scripts/find-tracking-issue-render.test.cjs ✓
.github/scripts/find-tracking-issue.sh ✓
.github/scripts/find-tracking-issue.test.sh ✓
.github/scripts/render-find-tracking-issue.cjs ✓

Both the pull_request and push blocks received identical additions, keeping the two filter sets in sync. Alphabetical order within each section is preserved (link-check < queue-monitor-liveness < select-runner; find-… before osv-…; render-find-… before render-osv-…).

New test step

The new step is consistent with the existing pattern (explicit bash interpreter, same indentation, clearly named):

- name: Test tracking-issue resolver
  run: bash .github/scripts/find-tracking-issue.test.sh

It's correctly placed after the Node.js glob step (which already picks up find-tracking-issue-render.test.cjs via *.test.cjs) and before the OSV/zizmor/digest steps that already have explicit entries.

Security and CLAUDE.md alignment

No trigger changes — the workflow remains pull_request/push/workflow_dispatch only. The pull_request_target / workflow_run tripwire and least-privilege permissions: {} job-level defaults are untouched. No SHA pins were added or changed (path filters don't affect action pins).

One observation worth a quick sanity-check

The PR description says "all three generated workflow consumers," but only two new workflow paths were added (link-check.yml and queue-monitor-liveness.yml). If render-find-tracking-issue.cjs generates a third workflow, its path would need to be in this filter list too. The pre-existing workflow paths (select-runner.yml, zizmor.yml, osv-scanner.yml, tool-version-drift-check.yml) don't appear to be candidates based on their names. This may just be a description issue (the "three" counting an artifact that's already covered), but worth a brief confirmation that no generated consumer was left out.

Summary

The change is correct, minimal, and consistent with repo conventions. No bugs, security issues, or CLAUDE.md violations. The one thing worth confirming is whether the "third generated consumer" mentioned in the description has its path covered somewhere in the existing filter list, or whether it was inadvertently omitted.

@claude

claude Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 6s —— View job


Security Review — PR #184

  • Fetch PR diff
  • Read changed file(s)
  • Analyze for security issues
  • Post findings

No security issues found.

This PR makes two classes of changes to .github/workflows/selector-conformance.yml:

1. Path-filter additions (lines 6–7, 14–16, 22, 34–35, 42–44, 50)
Purely additive entries in the paths: lists for both pull_request and push triggers. Path filters control when the workflow runs, not what it does; adding entries cannot widen permissions or expose secrets.

2. New run: step (lines 91–92)

- name: Test tracking-issue resolver
  run: bash .github/scripts/find-tracking-issue.test.sh

This is a static invocation with no interpolation from the github context or any external input. I reviewed both the test harness (find-tracking-issue.test.sh) and the resolver it exercises (find-tracking-issue.sh):

  • The test uses hardcoded fixtures — no network calls, no gh CLI, no secret access.
  • The resolver uses jq --arg to pass shell variables into jq expressions, preventing injection.
  • Output written to $GITHUB_OUTPUT is an integer issue number (tostring of a JSON number) — no injection vector.
  • The test creates and cleans up its own temp GITHUB_OUTPUT file via mktemp/trap, isolated from the real Actions output sink.

Checklist against CLAUDE.md and repo security rules:

Rule Status
pull_request only; no pull_request_target or workflow_run with secrets ✓ unchanged
SHA-pinned uses: (actions/checkout@9c091bb…, actions/setup-node@48b55a0…) ✓ unchanged
permissions: {} at workflow level; contents: read scoped to the one job that needs checkout ✓ unchanged
No github context interpolated directly inside run: blocks ✓ all values flow through env:
No untrusted checkout before the action step ✓ N/A (no claude-code-action here)

@kyle-sexton
kyle-sexton merged commit e40f3f8 into main Jul 21, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the codex/issue-178-selector-conformance-followup branch July 21, 2026 05:13
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.

Extract shared find-tracking-issue core across 3 workflows (inline-generate)

1 participant