Skip to content

ci(security): add CodeQL, Scorecard, fuzzing and signed releases - #22

Merged
jamesconwaydev merged 6 commits into
mainfrom
task-16-openssf
Nov 6, 2026
Merged

jamesconwaydev merged 6 commits into
mainfrom
task-16-openssf

Conversation

@jamesconwaydev

Copy link
Copy Markdown
Collaborator

Lays the groundwork for a climbing OpenSSF Scorecard score and, later, the Best Practices badge.

What's in it

  • CodeQL for Python, JavaScript/TypeScript and the workflows themselves, on push, PR and weekly. The three analyze (...) checks go into the ruleset via scripts/admin/setup_repo.sh, which still needs running after merge.
  • Scorecard on push to main, weekly and on branch-rule changes, publishing results for the README badge.
  • Dependabot for Actions, both npm projects and the ClusterFuzzLite base image: weekly, grouped minor and patch, with a 7-day cooldown. No pip entry, because there is no Python manifest.
  • Fuzzing with atheris through ClusterFuzzLite on PRs (5 minutes). It already found two descriptions that passed the filter and then failed validate_data's re-check; both are fixed here with regression tests.
  • Releases: a v* tag builds the source and site tarballs, attests their provenance and creates the release. Nothing is tagged yet.
  • SECURITY.md with response times, scope and safe harbour, and the Scorecard badge in the README.
  • Deploy hardening: workflow_run builds must come from main, and Astro telemetry is off.

Part of the v0.1 launch.

Fuzzing found two descriptions that passed the filter and then failed
validate_data's re-check of the stored text:

- A trailing "www" became "www." once the period was added, which the
  link check rejects. The checks now run on the text we store.
- A variation selector other than U+FE0F reset the emoji run, then got
  stripped, leaving four emoji in a row. All selectors now ride along.
Two atheris targets, built and run on pull requests through
ClusterFuzzLite with a five-minute budget.
- CodeQL for Python, JS/TS and the workflows themselves, required in
  the ruleset once setup_repo.sh runs.
- Scorecard publishes weekly and on every push to main.
- Dependabot opens grouped weekly updates, each version a week old.
- A v* tag builds the source and site tarballs, attests their
  provenance and creates the release.
- Deploy only follows workflow_run builds from main, and Astro no
  longer sends build telemetry.
Also adds the Scorecard badge to the README, now that it ships.
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Only Cf characters were stripped, so a blocked word split by U+180B,
U+3164, U+115F or a tag variation selector got through. Strip an
explicit Default_Ignorable_Code_Point table on both sides of NFKC,
which maps U+3164 and U+FFA0 onto U+1160.

A bare "www" is a word again: only "www." followed by a name is a link.
- release-tags ruleset: only admins create, move or delete v* tags.
- main-protection blocks merges on CodeQL errors or high alerts.
- Release builds skip the npm cache; Dependabot leaves wrangler alone.
- SECURITY.md promises only what the process does.
# regex, so this is the table. U+FE00-FE0F is left to VARIATION: the emoji-run
# check needs to see them first.
IGNORABLE = re.compile(
"[\u00ad\u034f\u061c\u115f\u1160\u17b4\u17b5\u180b-\u180f\u200b-\u200f\u202a-\u202e"
# regex, so this is the table. U+FE00-FE0F is left to VARIATION: the emoji-run
# check needs to see them first.
IGNORABLE = re.compile(
"[\u00ad\u034f\u061c\u115f\u1160\u17b4\u17b5\u180b-\u180f\u200b-\u200f\u202a-\u202e"
@jamesconwaydev
jamesconwaydev merged commit 3b4600c into main Nov 6, 2026
8 checks passed
@jamesconwaydev
jamesconwaydev deleted the task-16-openssf branch November 6, 2026 01:39
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.

2 participants