Documentation ¶
Index ¶
- Constants
- func AssertSanitizedEnv(t *testing.T)
- func Chdir(dir string) (cbk func(), err error)
- func GetBanner(banner imageSource) string
- func GetSeverityTag(iconName IconName) string
- func ReportUsage(commandName string, serverDetails *config.ServerDetails, ...)
- func SetEnvAndAssert(t *testing.T, env map[string]string)
- type FrogbotParams
- type GitParam
- type IconName
- type JFrogEnvParams
Constants ¶
View Source
const ( // Images NoVulnerabilityBannerSource imageSource = "noVulnerabilityBanner.png" VulnerabilitiesBannerSource imageSource = "vulnerabilitiesBanner.png" // VCS providers params GitHub vcsProvider = "github" GitLab vcsProvider = "gitlab" // Frogbot label LabelName frogbotLabel = "🐸 frogbot scan" LabelDescription frogbotLabel = "triggers frogbot scan" LabelColor frogbotLabel = "4AB548" InstallCommandEnv = "JF_INSTALL_DEPS_CMD" WorkingDirectoryEnv = "JF_WORKING_DIR" // JFrog platform environment varialbes JFrogUserEnv = "JF_USER" JFrogUrlEnv = "JF_URL" JFrogPasswordEnv = "JF_PASSWORD" JFrogTokenEnv = "JF_ACCESS_TOKEN" // Git environment variables GitProvider = "JF_GIT_PROVIDER" GitRepoOwnerEnv = "JF_GIT_OWNER" GitRepoEnv = "JF_GIT_REPO" //#nosec G101 -- False positive - no hardcoded credentials. GitTokenEnv = "JF_GIT_TOKEN" GitBaseBranchEnv = "JF_GIT_BASE_BRANCH" GitPullRequestIDEnv = "JF_GIT_PULL_REQUEST_ID" GitApiEndpointEnv = "JF_GIT_API_ENDPOINT" WatchesDelimiter = "," // Comment TableHeder = "\n| SEVERITY | IMPACTED PACKAGE | VERSION | FIXED VERSIONS | COMPONENT | COMPONENT VERSION | CVE\n" + ":--: | -- | -- | -- | -- | :--: | --" WhatIsFrogbotMd = "\n\n[What is Frogbot?](https://github.com/jfrog/frogbot#frogbot)" )
Variables ¶
This section is empty.
Functions ¶
func AssertSanitizedEnv ¶ added in v1.0.1
Make sure the environment variables does not contain any Frogbot variables
func GetSeverityTag ¶
func ReportUsage ¶ added in v1.1.0
func ReportUsage(commandName string, serverDetails *config.ServerDetails, usageReportSent chan<- error)
Types ¶
type FrogbotParams ¶
type FrogbotParams struct { JFrogEnvParams GitParam WorkingDirectory string InstallCommandName string InstallCommandArgs []string }
func GetParamsAndClient ¶
func GetParamsAndClient() (*FrogbotParams, vcsclient.VcsClient, error)
type JFrogEnvParams ¶
type JFrogEnvParams struct { Server coreconfig.ServerDetails Project string Watches string }
Click to show internal directories.
Click to hide internal directories.