Documentation
¶
Index ¶
Constants ¶
View Source
const ( Timeout = "timeout" SuppressIssues = "suppress-issues" JSON = "json" )
Variables ¶
View Source
var Cmd = cli.Command{ Name: "test", Usage: "Test current revision against FOSSA scan status and exit with errors if issues are found", Action: Run, Flags: flags.WithGlobalFlags(flags.WithAPIFlags([]cli.Flag{ cli.IntFlag{Name: Timeout, Value: 10 * 60, Usage: "duration to wait for build completion (in seconds)"}, cli.BoolFlag{Name: SuppressIssues, Usage: "don't exit with code 1 if issues are found"}, cli.BoolFlag{Name: JSON, Usage: "format failed issues as JSON"}, })), }
View Source
var PollRequestDelay = 8 * time.Second
Functions ¶
func CheckBuild ¶
CheckBuild polls the latest_build endpoint until the most recently uploaded build has succeeded.
func CheckIssues ¶
CheckIssues polls the issues endpoint until an issue scan has been run on the latest project revision.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.