Skip to content

ci(pr-pipeline): log the issues field_added payload shape for #13484 - #13697

Merged
kyle-sexton merged 3 commits into
mainfrom
ci/13484-status-field-probe
Nov 6, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
ci/13484-status-field-probe

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Refs: #13484

Summary

A temporary, token-free workflow that logs the shape of an issues field_added payload, so #13484's trigger gates on the key names a live event carries, not on the docs' description. #7577's Q563 decision says the trigger "triggers on Actions issues: field_added with changes.issue_field_value.from, checked live on the first trigger run", and Automation Lanes' constraint 4 for #13484 requires that check before gating. The lanes App's Work status mirror writes (#13490, #13493) fire field_added within minutes, so no person is needed to produce a sample.

Fix

  • .github/workflows/work-status-field-probe.yml (new):
    • on: issues: types: [field_added], permissions: {}, no secret, no checkout.
    • One step reads $GITHUB_EVENT_PATH with jq and prints action, sender id/type/login, the issue number, changes, issue_field, issue_field_value, the payload's top-level keys, and its key paths outside the standard issue/repository/organization/sender/enterprise/installation objects.
    • No event text reaches a command through ${{ }}.
    • The concurrency group is keyed on the issue, with cancel-in-progress: true; timeout-minutes: 2.
  • actionlint and field_added. actionlint 1.7.12 (the latest release, and CI's pin) rejects field_added with invalid activity type "field_added" for "issues" Webhook event, though GitHub documents it (events that trigger workflows).
    • .github/actionlint.yaml is synced from melodic-software/standards, so the scoped ignore went in at melodic-software/standards#952, with a fixture pair and a removal tripwire.
    • It reached this repository through standards-sync #13698, merged 12:26Z.
    • This PR changes only the probe workflow and merges that main in. The do-not-merge hold set while the sync was pending is lifted.

Verification

  • actionlint on the new workflow: clean with the ignore. Without it, actionlint fails only on the activity type.
  • zizmor --offline on the new workflow: "No findings to report."
  • bash scripts/check-affected.sh --tests: one failure, plugins/actionlint/hooks/actionlint-end-of-turn.test.sh (6 passed, 2 failed, after mise ERROR). It fails through this host's broken mise node shim, not this change: with the real node binary first on PATH it reads "8 passed, 0 failed", and this PR changes no plugin file. Its CI lane runs it with a working node.

Remaining

Related

🤖 Generated with Claude Code

Adds work-status-field-probe.yml, a temporary token-free workflow that logs
an issues field_added event's shape with jq, so work-resolve-issue's field
trigger gates on the key names a live event carries (#7577 Q563). Adds a
narrow actionlint ignore for the field_added activity type, which
actionlint 1.7.12 does not list yet.

Refs: #13484

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 6, 2026 11:54
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-06T11:55:03.817152Z
We couldn’t complete this review. Comment @codex review to try again.
93f8109 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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.

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review needs no new review of 439322ba7a3e0f5a44c43d10836de149e11a8bc1: no file of this pull request changed since the review of 50a6d14.

Security review: PR #13697 (head 93f8109)

No security issues found. I read every hunk of both changed files. Neither file matches a listed trusted path, and the change touches no trust control: not the trusted-trigger check, the lane token request or broker, the kill switch, any merge hold, or any action under .github/actions/.

.github/workflows/work-status-field-probe.yml (new)

  • Trigger: on: issues: types: [field_added]. This event runs the default-branch workflow in the base repository's context. No pull request or fork code is checked out or run.
  • Token: permissions: {} (line 14) gives the job's GITHUB_TOKEN no scopes. The job uses no secrets and no actions/checkout.
  • Injection: none. The one run: step (lines 55-66) reads $GITHUB_EVENT_PATH with a fixed jq filter. No ${{ }} expression and no event text reaches the shell. The only expression is github.event.issue.number in the concurrency group (line 47). It is an integer and only names the group.
  • Data exposure: the step logs the sender's id, type and login, the issue number, changes, issue_field, issue_field_value and key paths. Anyone who can read the issue can already see all of these. No token or secret is in the payload or the environment it prints.
  • Who can trigger it: anyone allowed to set an issue field (triage or higher, or the lanes App). What they get is a 2-minute job (timeout-minutes: 2) with no permissions that prints JSON. A runaway is bounded by the concurrency group with cancel-in-progress: true and by the timeout.

.github/actionlint.yaml

  • The change adds one ignore pattern: 'invalid activity type "field_added" for "issues" Webhook event'. It matches only that literal message for that event. It does not loosen any other actionlint check, and zizmor's advisory lane is unaffected.

Spend (not a finding): each field_added event on an issue runs one short job on a GitHub-hosted ubuntu-24.04 runner, capped at 2 minutes. That uses Actions minutes but changes no billing setting.

Instruction-surface lens: the diff removes or weakens no standing instruction.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

claude-review needs no new review of 439322ba7a3e0f5a44c43d10836de149e11a8bc1: no file of this pull request changed since the review of 50a6d14.

Code review: no findings

I read the whole diff for both changed files, .github/actionlint.yaml and .github/workflows/work-status-field-probe.yml. Nothing in it meets the bar for a blocking or advisory finding.

.github/workflows/work-status-field-probe.yml (new, temporary probe for #13484)

  • Inputs: the step reads only $GITHUB_EVENT_PATH through jq. No ${{ }} expression puts event text into the run: script; the only expression is the issue number in the concurrency group.
  • Permissions and limits: it sets permissions: {}, uses no secret and does no checkout. It runs on a pinned ubuntu-24.04 runner with timeout-minutes: 2.
  • jq filter: the filter looks correct.
    • \\. inside the YAML block scalar reaches jq as \..
    • issue_field.* paths are kept, because ^issue\. does not match issue_field.
    • changes.issue_field_value.from gets printed through changes.
    • Missing keys print as null, not as errors.
  • What it captures: it prints the fields the description promises: action, sender id/type/login, the issue number, changes, issue_field, issue_field_value, the top-level keys and the non-standard key paths.

.github/actionlint.yaml

  • The new ignore pattern matches only actionlint's message for field_added on issues. A misspelled activity type would still fail.
  • It sits next to the file's other version-lag ignores, with a stated removal trigger and trade-off.

Closing issues: the PR context has Refs: #13484 and no closing-issue section, so there are no acceptance criteria to check.

Path-scoped rules: no .claude/rules/ file's paths: glob matches either changed file.

Trusted paths: neither changed file matches a trusted-path glob. The new workflow name is not on the trusted-workflow list.

Spend: each field_added event runs one GitHub-hosted job of up to 2 minutes. That uses Actions minutes on a standard runner and nothing else. The probe is temporary: #13484's trigger PR deletes it.

Verification: the actionlint, zizmor and check-affected results in the PR description are the author's claims. I did not run them, because this lane has no shell.

.github/actionlint.yaml is synced from melodic-software/standards, so
check-managed-files refuses a local edit. The ignore lands there in
melodic-software/standards#952 and reaches this file through
standards-sync.

Refs: #13484

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 6, 2026
kyle-sexton added a commit to melodic-software/standards that referenced this pull request Nov 6, 2026
Refs: melodic-software/claude-code-plugins#13484

## Summary

Adds a scoped actionlint ignore for GitHub's `issues` activity type
`field_added`, which fires when an issue field value is set or updated
([events that trigger
workflows](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#issues)).
actionlint 1.7.12, the latest release (2026-03-30), rejects it with
`invalid activity type "field_added" for "issues" Webhook event`, and no
upstream issue mentions it yet.

claude-code-plugins needs the type for work-resolve-issue's Work status
field trigger (#13484) and its payload probe
([#13697](melodic-software/claude-code-plugins#13697)).
Its `.github/actionlint.yaml` is synced from here, so
`check-managed-files` refuses the edit there.

## Fix

Same shape as the `cache-mode` ignore (#822):

- `.github/actionlint.yaml`: the exact message added to the `paths`
ignore, with a comment carrying the docs link, the user, the removal
trigger and the trade-off.
- `components/actionlint/fixtures/good/field-added.yml`: an `issues:
[labeled, field_added]` workflow.
- `components/actionlint/fixtures/bad/unknown-issues-type.yml`: a
made-up `issues` type, which must still fail.
- `components/actionlint/actionlint.test.sh`, cases 32-38:
  - the good fixture lints clean with the config;
- the made-up type still fails, and the suppression stays scoped to its
own message;
- a configless control reports the `field_added` message. That control
is the removal tripwire.
- `components/actionlint/README.md` and the
`distribution/sync-manifest.yml` comment list the new waiver.

## Verification

- `bash components/actionlint/actionlint.test.sh` (actionlint 1.7.12):
38 passed, including the 7 new cases.
- `markdownlint-cli2 components/actionlint/README.md`: 0 issues.
- Pre-commit: editorconfig, typos, shellcheck, gitleaks and markdownlint
passed.

## Related

- melodic-software/claude-code-plugins#13484
- melodic-software/claude-code-plugins#13697, which waits on the synced
config; it drops its own copy of this edit
- #822 (the `cache-mode` precedent)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 6, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 90fb629 Nov 6, 2026
76 checks passed
@kyle-sexton
kyle-sexton deleted the ci/13484-status-field-probe branch November 6, 2026 12:40
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