Open
Description
I've been playing around with GitHub's Dependency Submission API, which consumes pURL(s).
However, as noted here and in anchore/syft#1622, it appears that GitHub's support for pURL type
fields has some validation, looking for "known" pURLs, rather than allowing arbitrary type
s.
For instance, if we use packageurl-go, the pURL pkg:mix/req@~%3E%200.3
parses correctly:
package main
import (
"fmt"
"log"
"github.com/package-url/packageurl-go"
)
func main() {
s := "pkg:mix/req@~%3E%200.3"
fmt.Printf("s: %v\n", s)
p, err := packageurl.FromString(s)
if err != nil {
log.Fatal(err)
}
fmt.Printf("p.Name: %v\n", p.Name)
fmt.Printf("p.Version: %v\n", p.Version)
}
Clarification on this issue would allow raising this to GitHub as a defect, if it is one.