Skip to content

feat: adopt actionlint, zizmor, and osv-scanner from ci-workflows - #22

Merged
kyle-sexton merged 1 commit into
mainfrom
feat/adopt-actionlint-zizmor-osv
Jun 23, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
feat/adopt-actionlint-zizmor-osv

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Newly consume the Phase 2 ci-workflows building blocks. standards ran none of these before, so this is additive (no inline copies to retire).

New lanes (all feed ci-status)

  • actionlint composite action (…/actions/actionlint@62235bb) — lints this repo's own workflows. Blocking (workflows already pass).
  • zizmor reusable workflow (…/workflows/zizmor.yml@c59411f, paths: .) — Actions security lint. Advisory (annotates without blocking).
  • osv-scanner reusable workflow (…/workflows/osv-scanner.yml@c59411f) — dependency vuln scan over package-lock.json. Advisory (fail-on-vuln defaults false). Its caller job grants actions: read / contents: read / security-events: write, which Google's wrapped reusable workflows require at parse time.

Dependabot cooldown

Added a 7-day cooldown to both ecosystem entries (github-actions, npm) — clears zizmor's dependabot-cooldown findings. Cooldown applies only to version updates; security updates bypass it.

Known advisory findings (surfaced, not blocking)

  • osv-scanner: two medium dev-dependency vulns — js-yaml 4.1.1→4.2.0 (GHSA-h67p-54hq-rp68) and markdown-it 14.1.1→14.2.0 (GHSA-6v5v-wf23-fmfq). Both lockfile-fixable; tracked for a separate npm bump (kept out of this CI-adoption PR).
  • zizmor: one low adhoc-packages note on the fixtures lanes' deliberate inline tool installs (intentional — those lanes install pinned tools to assert specific rule codes).

Verification

Local pre-checks pass: actionlint clean; check-jsonschema validates the workflows and the cooldown'd dependabot.yml; zizmor offline reports no medium/high findings. The cross-repo reusable-workflow resolution and the live package-lock.json scan run on this PR's CI.

🤖 Generated with Claude Code

Newly consume the Phase 2 ci-workflows building blocks (none ran here before):

- actionlint composite action (SHA-pinned 62235bb) — lints this repo's own
  workflows; blocking.
- zizmor reusable workflow (c59411f, paths: .) — Actions security lint;
  advisory.
- osv-scanner reusable workflow (c59411f) — dependency vuln scan over
  package-lock.json; advisory (fail-on-vuln defaults false). Its caller job
  grants actions/contents/security-events as the wrapped Google workflows
  require at parse time.

All three feed the local ci-status gateway. Also add a 7-day Dependabot
cooldown to both ecosystem entries (clears zizmor's dependabot-cooldown
findings; security updates bypass cooldown).

Verified locally: actionlint clean; check-jsonschema validates the workflows
and the cooldown'd dependabot.yml; zizmor offline reports no medium/high
findings (one low adhoc-packages note remains for the fixtures lanes' deliberate
inline installs). osv-scanner reports two medium dev-dependency advisories
(js-yaml, markdown-it) — advisory, tracked for a separate lockfile bump.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@kyle-sexton
kyle-sexton merged commit 3674d7b into main Jun 23, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the feat/adopt-actionlint-zizmor-osv branch June 23, 2026 14:04
kyle-sexton added a commit that referenced this pull request Jun 23, 2026
…es (#23)

The advisory osv-scanner lane (PR #22) surfaced two medium dev-dependency
vulnerabilities, both transitive under [email protected], which pins them
to exact versions:

- js-yaml 4.1.1 -> 4.2.0 (GHSA-h67p-54hq-rp68)
- markdown-it 14.1.1 -> 14.2.0 (GHSA-6v5v-wf23-fmfq)

Because the parent pins exact versions, force the patched floors with a scoped
npm override (the standard mechanism for a transitive security bump without
waiting on the upstream release). Both are minor, semver-compatible bumps.

Verified: npm audit and osv-scanner both report 0 vulnerabilities; the markdown
module fixtures test still passes, so markdownlint-cli2 behavior is unchanged.

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
kyle-sexton added a commit that referenced this pull request Jul 15, 2026
…ception, bot composition, reply protocol) (#122)

## Summary

Five reasoning-only convention updates to `engineering/naming.md` and
`conventions/review/`:

- **naming.md** — promotes the org-wide branch-naming grammar
(Conventional Commits type prefix + cloud-agent/bot prefix, kebab-case
slug) into its own section, restated abstractly rather than cited from
any single downstream repo.
- **naming.md** — excepts `github-iac`'s label-governance seam
(`GovernedRepositorySpec.PreviousNames` aliasing, `Labels.cs` taxonomy
applied via `Github.IssueLabels`) from the "Rename across all coupled
edges" rule, since both propagate through a separate reviewed Pulumi
deployment on their own cadence rather than atomically with the
originating rename.
- **conventions/review/reply-protocol.md** (new) — codifies the
threaded, same-surface `Fixed in <sha>` reply as the standard way to
close a review finding once addressed, plus conditional
(bot-thread-only) resolution.
- **conventions/review/ai-review-bot-composition.md** (new) — documents
the expected AI-review-bot composition per repository governance class
(archived / no-CI-surface / governed / high-traffic primary), derived
from `github-iac`'s `GovernedRepositorySpec` registry rather than from
visibility or ownership.
- **conventions/review/code-quality.md** — converts the PR-title prose
bullet to a reference-only pointer at the `pr-title` workflow
(`ci-workflows/.github/workflows/semantic-pr.yml`) and
`enforceability-tiers.md`, removing the duplicated deterministic-rule
prose.

## Decisions closed

- #24 `naming-branch-convention-org-wide`
- #64 `naming-doc-conflict-content-fix`
- #22 `replies-codify-inline-reply-protocol`
- #51 `tooling-gov-review-bot-composition-standard`
- #67 `tooling-gov-standards-catalog-duplicate-prose`

Decisions Log:
https://claude.ai/code/artifact/232ecdce-8316-4880-8c0a-dc3c7dcf3a63
Evidence/rationale:
https://claude.ai/code/artifact/3160ae0e-c02f-4619-8de3-60d73faa1100

## Test plan

- [x] `markdownlint-cli2` — 0 errors on all changed/new files
- [x] `lychee --offline` — 0 broken links/anchors
- [x] `typos` — clean
- [x] Local `lefthook` pre-commit hooks (typos, gitleaks, editorconfig,
markdownlint) — all passed at commit time

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

Co-Authored-By: Claude Sonnet 5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
kyle-sexton added a commit that referenced this pull request Nov 11, 2026
…he org issue forms from it (#986)

No related issue: owner-approved design (org issue and PR template
interview, Q34 and Q36-Q38, 2026-11-11)

## Summary

Adds one issue-body contract,
`components/issue-body-contract/contract.json`, holding per issue type
(bug, feature, task, agent-ready work item) the fields, headings,
required flags, floor labels and native issue type. The org issue forms
are generated from it, and the sync delivers the forms plus the contract
to `melodic-software/.github` and the contract to the `bugs` and
`work-items` plugins, so every surface that writes or checks an issue
body reads one record.

It also restores the community profile's "Issue templates" check. The
live community page shows "Not added yet" for issue templates on all 11
public org repositories, `.github` included, although `.github` holds
the forms itself. Across 12 public repositories compared on 2026-11-11,
the check failed exactly where every form sets a top-level `type:` key
(ours since #22 in `.github`, commit 5d5509a) and passed wherever at
least one form omits `type:` or a Markdown template exists. The new
agent-ready form sets no native type: triage picks Bug, Feature or Task.
The generator refuses a contract where every type sets one.

## Fix

- `contract.json`: the record. The bug form follows `/bugs:write`'s five
fields (steps, expected, actual, severity with justification, suggested
fix location). The task form follows `/work-items:track add`'s default
headings (Context, Proposed work, Acceptance criteria, References). The
agent-ready form follows the agent-brief fields. Every form applies only
the `needs-triage` floor label; `agent-ready` stays a triage decision,
never applied by a public form.
- `issue-forms.mjs` generates `forms/*.yml` (`write`) and fails when the
committed forms drift from the contract (`check`);
`issue-forms.test.mjs` covers the generator and the contract rules. Both
run in `check-policies`.
- `sync-manifest.yml`: `issue-forms` (four forms and the contract) for
`melodic-software/.github`; `issue-body-contract-bugs` and
`issue-body-contract-work-items` for `claude-code-plugins`. Form file
names are unchanged, so the sync PR updates in place and leaves no stale
template; `config.yml` stays owned by `.github`.
- The hosted managed-files guard lists the new destinations.

Admission evidence (component lifecycle):

- Live consumers: `melodic-software/.github` `.github/ISSUE_TEMPLATE/`;
`claude-code-plugins` `/bugs:write` and `/work-items:track add`,
`decompose`, `triage`, whose follow-up PR reads the synced copies.
- Owner and outcome: standards maintainers. Acceptance: the forms and
both skills agree with the contract, and the community page for
`claude-code-plugins` shows issue templates added. Rollback: revert this
PR; the previous forms remain in `.github` history.
- Delivery boundary: exact materialization, the same path as
`pr-body-contract-rule`. Generation happens at authoring time, so the
sync stays byte-exact with no transforms.
- Alternatives: hand-maintained forms (the drift this replaces);
fetching the contract at run time (network dependency for every skill
run). No third-party dependency is added; the generator uses the
repository's existing `yaml` dev dependency.
- Rollout: deterministic check, blocking from admission; the committed
forms are the generator's output, so the baseline is clean by
construction.

## Verification

- `npm run test:issue-forms`: 8 tests pass.
- `npm run lint:issue-forms`: committed forms match `contract.json`.
- `bash distribution/sync-manifest.sh validate`: manifest valid, 53
components, 15 targets.
- `components/managed-files-guard/managed-files-guard.test.sh`: passes
with the new paths.
- `biome check` and `markdownlint-cli2` clean on the new files.

## Related

- Follow-ups: the `.github` PR adds the agent-ready form's local drift
check and fixes the PR template's `Refs #` example to `Refs: #`; the
`claude-code-plugins` PR points the skills at the synced contract.
- Docs: [About community profiles for public
repositories](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/about-community-profiles-for-public-repositories#using-the-community-profile-checklist-as-a-repository-maintainer);
the REST `files.issue_template` field stays `null` for any
`ISSUE_TEMPLATE/` directory
([github/rest-api-description#7187](github/rest-api-description#7187)),
so the live community page is the acceptance check.

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

https://claude.ai/code/session_01VQb9Q2ceZLXhTR4d1vkTCe

---------

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