Skip to content

fix(actionlint): admit the issues field_added activity type - #952

Merged
kyle-sexton merged 1 commit into
mainfrom
ci/actionlint-field-added
Nov 6, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
ci/actionlint-field-added

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

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

🤖 Generated with Claude Code

GitHub fires an issues field_added event when an issue field value is set
or updated, but actionlint 1.7.12, the latest release, rejects the type.
claude-code-plugins needs it for work-resolve-issue's Work status field
trigger (#13484). The ignore matches only that type on that event; a
fixture pair and a configless control prove it stays scoped and flags its
own removal.

Refs: melodic-software/claude-code-plugins#13484

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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-06T12:00:09.384754Z
We couldn’t complete this review. Comment @codex review to try again.
4031837 PR opened
ℹ️ 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.

kyle-sexton added a commit to melodic-software/claude-code-plugins that referenced this pull request Nov 6, 2026
.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]>
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

claude-security-review reviewed 40318378dddd76c7a467b9222b015a25688d20ed: 0 finding(s), 0 as inline comments.

No security issues found in PR #952 at 4031837.

The change adds one scoped actionlint ignore, invalid activity type "field_added" for "issues" Webhook event, to .github/actionlint.yaml. It also adds the matching README text, a sync-manifest comment, two fixtures and test cases in components/actionlint/actionlint.test.sh.

  • Lint suppression only. The ignore is an exact-message regex for one issues activity type. It changes no workflow trigger, permission, token request, trusted-actor list, kill switch, merge hold or signer path, so it widens no trust control.
  • Narrow scope. The new test checks that an unrelated unknown issues type (field_removed_twice) still fails, and that without the config field_added is rejected again. Those two cases show the ignore is not a blanket suppression.
  • Test script is safe. The new block uses only fixed paths, quoted variables and cp/rm inside the test's temp project. No untrusted input reaches a shell.
  • Fixtures are inert. Both fixture workflows declare permissions: {} and run exit 0, and the lint tests only read them.
  • No manifest or instruction-surface changes. The diff touches no plugin manifest, CLAUDE.md, AGENTS.md, rule file, skill or hook.

The ignore hides actionlint's check of that activity type, not a security control. The repo's zizmor lane still covers the trigger itself.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

claude-review reviewed 40318378dddd76c7a467b9222b015a25688d20ed: 0 finding(s), 0 as inline comments.

No findings.

The change adds a scoped actionlint ignore for the issues field_added activity type, in the same shape as the earlier cache-mode ignore.

  • Coverage: every place that lists the waivers is updated. That covers .github/actionlint.yaml, the component README, the sync-manifest comment, two fixtures, and the new test cases 32-38. A grep for cache-mode found no other copy of the config that would need the same line.
  • Test logic: I read the new cases and they hold together.
    • The bad fixture's field_removed_twice message differs from the ignored text, so the scoping assertion is meaningful.
    • The configless control reports the field_added message, so it fails when the pinned actionlint learns the type natively.
    • Case ordering and the rm calls leave the project directory in the state each case expects.
  • Not run: actionlint is not installed in this review environment, so I did not run the test script. The "38 passed" in the PR body is the author's claim, unverified by me.
  • Closing issue: the PR uses Refs: on a claude-code-plugins issue and closes nothing in this repo, so there are no acceptance criteria to check.
  • Nit, not reported: the added sync-manifest.yml comment line ("and issues field_added waivers. Targets repos where the canonical file can own the config") runs well past the ~80-column wrap of its neighbours.

@kyle-sexton
kyle-sexton merged commit 22275cc into main Nov 6, 2026
22 checks passed
@kyle-sexton
kyle-sexton deleted the ci/actionlint-field-added branch November 6, 2026 12:05
kyle-sexton added a commit that referenced this pull request Nov 6, 2026
Refs: melodic-software/claude-code-plugins#13486

<!-- session: lane-5 -->

## Summary

Adds the scoped actionlint ignore for GitHub's `issues` activity type
`field_removed`, which fires when an issue field value is cleared
([events that trigger
workflows](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#issues)).
actionlint 1.7.12 rejects it as it did `field_added` (#952): `invalid
activity type "field_removed" for "issues" Webhook event`.

claude-code-plugins `intake-reenter.yml` starts on the Work status field
through `field_added` and `field_removed`, so a person who clears a hold
on the field re-enters triage. Its `.github/actionlint.yaml` is synced
from here, so `pr-check-managed-files` refused the edit in
[melodic-software/claude-code-plugins#13849](melodic-software/claude-code-plugins#13849).

## Fix

Same shape as the `field_added` ignore (#952):

- `.github/actionlint.yaml`: the exact message added to the `paths`
ignore; the comment now names both types and both callers.
- `components/actionlint/fixtures/good/field-added.yml`: the workflow
now starts on `[labeled, field_added, field_removed]`.
- `components/actionlint/actionlint.test.sh`: the `field_removed`
suppression stays scoped to its message (case 37), and the configless
control reports the `field_removed` message (case 40), the removal
tripwire.
- `components/actionlint/README.md` and the
`distribution/sync-manifest.yml` comment name the new waiver.

## Verification

- `bash components/actionlint/actionlint.test.sh` (actionlint 1.7.12):
40 passed, including the 3 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#13486 (Work status moves to the
field)
- #952 (the `field_added` precedent)

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

https://claude.ai/code/session_01RMa441wb9nbFwyTS8nqdYj

Co-authored-by: Claude Opus 5.5 <[email protected]>
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