ossf / ossf/si-tooling

in-scope and out-of-scope generate as *URL, so any file that uses them fails to load

Open Beginner friendly
#68 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
9
Forks
4
Avg merge
4h 3m
Merged PRs (30d)
2

Description

InScope and OutOfScope in generated_types.go are *URL, but the schema declares both as string lists, so si.Load fails on any file that uses in-scope or out-of-scope. The loader is strict, so one bad field rejects the whole file and the project never learns its insights were not read (this happened to Project-HAMi/HAMi-core, which had to delete the fields). The @go(InScope,type=*URL) override in schema.cue looks copied from the neighbouring URL fields, so dropping type=*URL and regenerating should fix it.

error unmarshalling SI: [22:7] cannot unmarshal []interface {} into Go struct field SecurityInsights.Project of type si.URL
  21 |     in-scope:
> 22 |       - remote code execution in the server

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the InScope and OutOfScope definitions in v2/si/generated_types.go and the corresponding @go overrides in schema.cue. Regenerate the Go types after correcting the schema mapping, then verify that si.Load accepts files containing in-scope and out-of-scope string lists without the reported unmarshalling error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
88/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.