-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update module structure and set up main function
- Loading branch information
Showing
8 changed files
with
35 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package main | ||
|
||
import ( | ||
"flag" | ||
"log" | ||
|
||
osv_generator "github.com/konflux-ci/mintmaker/tools/osv-generator" | ||
) | ||
|
||
// A demo which parses RPM CVE data into OSV database format based on input CSAF VEX url | ||
// TODO: implement the ability to process all updated advisories | ||
func main() { | ||
url := flag.String("url", "", "Url pointing to CSAF VEX file") | ||
filename := flag.String("file", "demo.nedb", "Name of the file to store OSV data") | ||
|
||
flag.Parse() | ||
|
||
if err := osv_generator.GenerateOSV(*url, *filename); err != nil { | ||
log.Fatalf("Error generating OSV: %v\n", err) | ||
} | ||
} |
This file contains 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
2 changes: 1 addition & 1 deletion
2
...m_cve_generator/csaf_vex_vulnerability.go → ...s/osv-generator/csaf_vex_vulnerability.go
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package rpm_cve_generator | ||
package osv_generator | ||
|
||
type VEX struct { | ||
Document struct { | ||
|
This file contains 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
This file contains 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
2 changes: 1 addition & 1 deletion
2
...al/rpm_cve_generator/osv_vulnerability.go → tools/osv-generator/osv_vulnerability.go
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package rpm_cve_generator | ||
package osv_generator | ||
|
||
type OSV struct { | ||
SchemaVersion string `json:"schema_version"` | ||
|