Skip to content

chore: update security reporting instructions, bump golangci-lint ver… - #73

Merged
wiebe-vandendriessche merged 1 commit into
mainfrom
chore/scorecard-68
Oct 8, 2026
Merged

wiebe-vandendriessche merged 1 commit into
mainfrom
chore/scorecard-68

Conversation

@wiebe-vandendriessche

Copy link
Copy Markdown
Member

chore: raise OpenSSF Scorecard score (#68)

Fixes the Scorecard checks that can be fixed in code. The score is currently 6.2; with these changes and the manual steps below it should reach about 8.6. Code-Review and Branch-Protection can't go higher while the project has a single maintainer.

Changes

  • Vulnerabilities: added osv-scanner.toml to every targets/* fixture. It tells osv-scanner to ignore PyPI packages. The targets are fake repos the aibomgen scanner is tested against, and their packages are never installed. Running osv-scanner scan source -r . drops from 95 findings to 0. go.mod was already clean.
  • Pinned-Dependencies: targets/target-3/scripts/Dockerfile now pins its base image by digest and runs pip with --require-hashes. Scorecard has no way to exclude a path, and the file is a scanner fixture that is never built.
  • Fuzzing: added the Go-native fuzz test FuzzParseModelRef. It checks that a parsed ID is never empty and never contains @, and that parsing round-trips through String().
  • Security-Policy: SECURITY.md now links directly to private vulnerability reporting.
  • CI: golangci-lint v2.13.2 → v2.14.0. All actions were already on their latest release and pinned by SHA.

Follow-ups (not in this PR)

  • Register at bestpractices.dev and add the badge to the README (CII-Best-Practices).
  • Cut a release so checksums.txt.sigstore.json is published. Signing was added after v0.2.1. Signed-Releases looks at the last 5 releases, so it improves with each new release.
  • Merge all changes through PRs so CodeQL runs on every commit (SAST).
  • TestScanRepoDifficult always skips because its fixture path is wrong: ../../targets should be ../../../targets.

Testing

  • go test ./... passes.
  • go test -run='^$' -fuzz=FuzzParseModelRef -fuzztime=30s ./pkg/aibomgen/generator passes (about 570k runs).
  • osv-scanner scan source -r . finds no issues.

Closes #68

…sion, add fuzz tests, and create test fixtures
Copilot AI balanced review requested due to automatic review settings October 8, 2026 12:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

--require-hashes conflicts with the fixture’s un-hashed >= requirements, causing the Dockerfile build to fail.

1 open finding

🧠 Review effort: Lite


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment thread targets/target-3/scripts/Dockerfile
@wiebe-vandendriessche
wiebe-vandendriessche merged commit 9490399 into main Oct 8, 2026
8 checks passed
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.

Getting the OpenSSF scorecard as high as possible

2 participants