Add security policy and improve supply chain security - #6
Merged
Merged
Conversation
Pin the HTMLHint install to a checksummed tarball instead of resolving it through the npm registry at run time, add a SECURITY.md with a private-reporting path, and add a CODEOWNERS fallback so branch protection can require code owner review. This template is the golden baseline new sites are cloned from, so fixing it here propagates to everything built on top of it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H1WirNLJU8fNqht6aFxTnx
zizmor's adhoc-packages audit still flagged the previous fix: it pattern-matches on `npm install <arg>` regardless of whether the argument is a checksummed local tarball, and only treats `npm ci` against a lockfile as lockfile-aware. Move HTMLHint into its own package.json/package-lock.json under .github/htmlhint/ and install it with `npm ci`, which also satisfies Scorecard's Pinned-Dependencies check. Enable Renovate's npm manager (scoped to this one lockfile) so version bumps keep working the same way they did through the old custom regex. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H1WirNLJU8fNqht6aFxTnx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR enhances the repository's security posture by establishing a security policy and implementing stricter verification for external dependencies in CI/CD workflows.