Commit 5e7098a
committed
chore: adopt devkit baseline (CI, security, Claude rules) + fix 2 type errors
Implements the punch list from issue #8.
== CI/CD (none previously) ==
- .github/workflows/ci.yml: fmt + lint + check (mod.ts) on PR/main
pushes. Tests intentionally NOT in CI right now — 7 pre-existing
test failures on main predate this PR (AssertionError in
language_alternates_schema and markdown_metadata test files).
Tracking separately to keep this PR scope-bounded.
- .github/dependabot.yml: weekly github-actions + npm (docs-site)
updates.
NO publish.yml — hibana publishes to deno.land/x via webhook on tag
push (not JSR). Per project memory, JSR is intentionally not used
because Lume's dev resists JSR (no http imports support), and hibana
follows Lume's hosting choice.
== Security ==
- .github/workflows/security.yml: wrapper triggering local vendored
workflow on push/PR/weekly cron/dispatch.
- .github/workflows/secrets-and-sast-vendored.yml: 451-line copy of
eSolia/devkit/.github/workflows/secrets-and-sast.yml@main as of
2026-04-29. Vendored because hibana is public + cross-org from
eSolia/devkit (private) — GitHub blocks public consumers from
calling private reusable workflows AND blocks cross-org private
calls. Same vendored pattern as RickCogley/pub-cogley,
RickCogley/tedasuke, eSolia/marquis.
== Claude tooling ==
- .claude/rules/change-management.md: copy of devkit's shared rule.
Also fixed .gitignore to allow tracking .claude/rules/ (was
ignoring all of .claude/).
== Type-error fixes (2 from main) ==
- processors/vento_heading_anchors.ts:120 and processors/vento_toc.ts:163
both had `Required<...Options>` annotations on options merging,
but `containerSelector` is genuinely optional (undefined means
"scan whole document"). Aligned the annotations to Pick out
containerSelector as optional, matching the existing pattern in
the corresponding `defaults` declarations.
== Deno hygiene ==
- Drop misleading `name: "@rick/hibana"` from deno.json — JSR-style
scope but hibana doesn't publish to JSR (verified: jsr.io 404 for
this name). Field was confusing readers about the publish target.
- Add `preflight` task: deno fmt && deno check mod.ts && deno lint.
- Scope the `check` task to `deno check mod.ts` instead of
`deno check **/*.ts` — the glob picked up docs-site/ Astro
internals and root-level scripts and produced 11k+ unrelated
errors. mod.ts is the public entry point and what JSR-style
consumers care about.
- Commit deno.lock for reproducibility (was untracked on main; both
global and project .gitignore had been ignoring it).
- .gitignore overrides for `!deno.lock` (global gitignore_global
ignores) and `!.github/workflows/*secret*` (global pattern matches
the vendored filename).
== Out of scope (flagged for follow-up) ==
- Fix the 7 failing tests in language_alternates_schema and
markdown_metadata. The user has confirmed they were not aware of
these — likely surfaced by recent upgrades. Will be tracked in a
separate issue.
- Remove `no-explicit-any` lint exclusion and fix the ~18 `any`
usages (real cleanup work, not baseline scope).
- Move root-level scripts (release.ts, generate_readme.ts,
generate_readme2.ts, update_lume_version.ts) into scripts/.
- Investigate whether generate_readme2.ts is dead code.
Closes #8
InfoSec: brings continuous SAST + secret scanning + SBOM coverage
to a repo that previously had zero security automation. The 2 type
errors fixed are correctness improvements (avoids potential undefined
access on `options.containerSelector` later in the code, though the
runtime checks at usage sites already guard).1 parent 5c2774c commit 5e7098a
10 files changed
Lines changed: 1005 additions & 17 deletions
File tree
- .claude/rules
- .github
- workflows
- processors
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
0 commit comments