dast

package
v0.11.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunDASTScan added in v0.7.2

func RunDASTScan(ctx context.Context, dast *DAST, nullifyClient *client.NullifyClient, logLevel string) error

func RunLocalScan added in v0.7.2

func RunLocalScan(
	ctx context.Context,
	nullifyClient *client.NullifyClient,
	githubOwner string,
	githubRepository string,
	input *DASTExternalScanInput,
	imageLabel string,
	forcePullImage bool,
	useHostNetwork bool,
	logLevel string,
) error

Types

type DAST added in v0.4.0

type DAST struct {
	AppName     string
	Path        string
	TargetHost  string
	AuthHeaders []string

	GitHubOwner      string
	GitHubRepository string

	// local scan settings
	Local          bool
	ImageLabel     string
	ForcePullImage bool
	UseHostNetwork bool

	AuthConfig string
}

type DASTExternalScanInput added in v0.7.0

type DASTExternalScanInput struct {
	AppName     string                 `json:"appName"`
	TargetHost  string                 `json:"targetHost"`
	OpenAPISpec map[string]interface{} `json:"openAPISpec"`
	AuthConfig  models.AuthConfig      `json:"authConfig"`
}

type DASTExternalScanOutput added in v0.7.0

type DASTExternalScanOutput struct {
	Findings []models.DASTFinding `json:"findings"`
}

type DockerPullOutput added in v0.8.0

type DockerPullOutput struct {
	Status         string                    `json:"status"`
	ID             string                    `json:"id"`
	ProgressDetail *DockerPullProgressDetail `json:"progressDetail"`
}

type DockerPullProgressDetail added in v0.8.0

type DockerPullProgressDetail struct {
	Current int `json:"current"`
	Total   int `json:"total"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL