Documentation ¶
Index ¶
- Constants
- func BuildRepoReference(repository, analyzedRef string) (string, error)
- func CreateAndPersistToolRecord(utils piperutils.FileUtils, repoInfo RepoInfo, ...) (string, error)
- func WriteJSONReport(jsonReport CodeqlAudit, modulePath string) ([]piperutils.Path, error)
- type CodeqlAudit
- type CodeqlFindings
- type CodeqlSarifUploader
- type CodeqlSarifUploaderInstance
- type CodeqlScanAudit
- type CodeqlScanAuditInstance
- type GitUploader
- type GitUploaderInstance
- type RepoInfo
- type SarifFileInfo
Constants ¶
View Source
const ( CommitMessageMirroringCode = "Mirroring code for revision %s from %s" SrcZip = "src.zip" CodeqlDatabaseYml = "codeql-database.yml" OriginRemote = "origin" )
View Source
const AuditAll string = "Audit All"
View Source
const Optional string = "Optional"
Variables ¶
This section is empty.
Functions ¶
func BuildRepoReference ¶ added in v1.321.0
func CreateAndPersistToolRecord ¶ added in v1.321.0
func WriteJSONReport ¶
func WriteJSONReport(jsonReport CodeqlAudit, modulePath string) ([]piperutils.Path, error)
Types ¶
type CodeqlAudit ¶
type CodeqlAudit struct { ToolName string `json:"toolName"` RepositoryUrl string `json:"repositoryUrl"` RepositoryReferenceUrl string `json:"repositoryReferenceUrl"` //URL of PR or Branch where scan was performed CodeScanningLink string `json:"codeScanningLink"` QuerySuite string `json:"querySuite"` ScanResults []CodeqlFindings `json:"findings"` }
type CodeqlFindings ¶ added in v1.301.0
type CodeqlSarifUploader ¶ added in v1.296.0
type CodeqlSarifUploader interface {
GetSarifStatus() (SarifFileInfo, error)
}
type CodeqlSarifUploaderInstance ¶ added in v1.296.0
type CodeqlSarifUploaderInstance struct {
// contains filtered or unexported fields
}
func NewCodeqlSarifUploaderInstance ¶ added in v1.296.0
func NewCodeqlSarifUploaderInstance(url, token string) CodeqlSarifUploaderInstance
func (*CodeqlSarifUploaderInstance) GetSarifStatus ¶ added in v1.296.0
func (codeqlSarifUploader *CodeqlSarifUploaderInstance) GetSarifStatus() (SarifFileInfo, error)
type CodeqlScanAudit ¶
type CodeqlScanAuditInstance ¶
type CodeqlScanAuditInstance struct {
// contains filtered or unexported fields
}
func NewCodeqlScanAuditInstance ¶
func NewCodeqlScanAuditInstance(serverUrl, owner, repository, token string, trustedCerts []string) CodeqlScanAuditInstance
func (*CodeqlScanAuditInstance) GetVulnerabilities ¶
func (codeqlScanAudit *CodeqlScanAuditInstance) GetVulnerabilities(analyzedRef string) ([]CodeqlFindings, error)
type GitUploader ¶ added in v1.315.0
type GitUploaderInstance ¶ added in v1.315.0
func NewGitUploaderInstance ¶ added in v1.315.0
func NewGitUploaderInstance(token, ref, dbDir, sourceCommitId, sourceRepo, targetRepo string) (*GitUploaderInstance, error)
func (*GitUploaderInstance) UploadProjectToGithub ¶ added in v1.315.0
func (uploader *GitUploaderInstance) UploadProjectToGithub() (string, error)
type SarifFileInfo ¶ added in v1.296.0
Click to show internal directories.
Click to hide internal directories.