Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NpmAuditMirrorConfig string
View Source
var VerdaccioConfigTemplate string
Functions ¶
func GetMirrorConfigTmpl ¶
GetMirrorConfigTmpl is utility function that returns a template of the verdaccio config.
Types ¶
type Config ¶
type Config struct {
SupportedProjects map[string]*SupportedProject `json:"supported_projects"`
}
Config is a struct that contains all required configurations of projects supported by the npm-audit-mirror framework.
type IssueTrackerConfig ¶
type IssueTrackerConfig struct {
Owner string `json:"owner"`
}
type PackagesAllowList ¶
type SupportedProject ¶
type SupportedProject struct { // A gitiles link to the repo. Eg: "https://skia.googlesource.com/buildbot.git". RepoURL string `json:"repo_url"` // The branch to use in the above repo. Eg: "main". GitBranch string `json:"git_branch"` // The directory in the above repo that contains the package.json file // we want to audit. Use empty string if it is at the top-level. // Eg: "" or "appengine/monorail". PackageJSONDir string `json:"package_json_dir"` // The packages we skip pre-download checks for. PackagesAllowList []PackagesAllowList `json:"packages_allow_list,omitempty"` // The scopes we skip pre-download checks for. TrustedScopes []string `json:"trusted_scopes,omitempty"` // The issue tracker config used for filing audit and downloaded packages bugs. IssueTrackerConfig *IssueTrackerConfig `json:"issue_tracker_config,omitempty"` // Whether to audit devDependencies for the project. AuditDevDependencies bool `json:"audit_dev_dependencies"` }
Click to show internal directories.
Click to hide internal directories.