in-scope and out-of-scope generate as *URL, so any file that uses them fails to load
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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