Fix Scorecard supply-chain alerts: add fuzzing tests and CODEOWNERS - #12
Merged
Conversation
… alerts Co-authored-by: VrilLabs <271641621+VrilLabs@users.noreply.github.com>
…back Co-authored-by: VrilLabs <271641621+VrilLabs@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix code scanning alerts flagged in repository
Fix Scorecard supply-chain alerts: add fuzzing tests and CODEOWNERS
Aug 15, 2026
VrilLabs
marked this pull request as ready for review
August 15, 2026 04:44
There was a problem hiding this comment.
Pull request overview
This PR addresses OpenSSF Scorecard supply-chain alerts by adding a recognized fuzzing/property-based testing integration (fast-check) and introducing CODEOWNERS configuration to support branch-protection expectations.
Changes:
- Added property-based tests with fast-check for core error classes and EndpointFlavor-related invariants.
- Added fast-check as a dev dependency (with corresponding lockfile updates).
- Added
.github/CODEOWNERSto designate repository reviewers/owners for all paths.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/test/property.test.ts |
Introduces fast-check property-based tests to satisfy Scorecard fuzzing signal and validate error-class invariants. |
package.json |
Adds fast-check to devDependencies. |
package-lock.json |
Locks fast-check (and transitive pure-rand) and records updated npm metadata. |
.github/CODEOWNERS |
Defines code ownership for all paths to support branch protection / code-owner review flows. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+1
to
+3
| # CODEOWNERS | ||
| # These owners will be required reviewers for all pull requests. | ||
| # See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners |
Comment on lines
+121
to
+127
| describe('EndpointFlavor – property-based tests', () => { | ||
| const VALID_FLAVORS = new Set(['pkg', 'powershell', 'apt', 'rpm']); | ||
|
|
||
| /** Mirrors the runtime validation logic used in tool handlers */ | ||
| function isValidFlavor(value: string): boolean { | ||
| return VALID_FLAVORS.has(value); | ||
| } |
Co-authored-by: VrilLabs <271641621+VrilLabs@users.noreply.github.com>
Co-authored-by: VrilLabs <271641621+VrilLabs@users.noreply.github.com>
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.
Five OpenSSF Scorecard alerts were flagged in this repo. Three are false positives (process/time-based), two are addressable via code and config changes.
Changes
Alert #17 – Fuzzing (Medium) — Fixed
src/test/property.test.tsusing fast-check for property-based testing, which Scorecard recognizes as a fuzzing integration for TypeScript/JavaScript projectsAlienSecError,AlienVaultAPIError,VirusTotalAPIError,DatabaseError,ConfigurationError) andEndpointFlavorvalidation logicAlert #1 – Branch-Protection (High) — Partially Fixed
.github/CODEOWNERSassigning@VrilLabsas required reviewer on all pathsFalse Positives (no code change possible)