Skip to content

v1.12.2 — Repository check accuracy improvements

Choose a tag to compare

@github-actions github-actions released this 04 Dec 17:39
2dfa722

Harness Score v1.12.2

Improve detection of lockfiles, Git hooks, formatter configs, and agent instructions.

What changed

Fixes and improvements

  • CI-04 now recognizes every main config name lefthook reads: lefthook or .lefthook with a .yml, .yaml, .toml, .json or .jsonc extension at the root, and the undotted lefthook.<ext> names in .config/. Before, only lefthook.yml and .lefthook.yml counted. The evidence now names the file that was found.

  • CTX-02 no longer counts # comment lines inside code blocks as headings. An AGENTS.md with no real headings but a fenced shell snippet such as # install used to pass the "≥2 headings" bar. Headings are now read with the same Markdown scanner the reference check uses, so code blocks, HTML comments and frontmatter are skipped, and setext headings (a line underlined with === or ---) also count.

  • HYG-07 now accepts pdm.lock and pylock.toml (the PEP 751 standard lockfile) for Python projects, and npm-shrinkwrap.json for Node projects. Before, a project locked with one of these failed with "Manifest present but no lockfile". npm v12 no longer reads npm-shrinkwrap.json, so it only locks installs on npm 11 and earlier; the check catalog notes this.

  • SNS-04 now recognizes every config file name Prettier documents, including .prettierrc.json5, .prettierrc.mjs and the TypeScript forms (.prettierrc.ts, prettier.config.mts, and so on). Before, these only passed when prettier was also listed in the root package.json, which misses monorepo packages and non-Node repos.

Install or upgrade

npx --yes harness-score

For GitHub Actions:

- uses: paladini/harness-score@v1

Published artifacts

Contributors

  • Thanks to @JYunth for helping improve Harness Score.