Documentation
¶
Index ¶
- func CheckForIssues(analysis *api.SecurityAnalysis) (bool, int)
- func FormatComment(analysis *api.SecurityAnalysis, consoleURL string) string
- func FormatCommentFallback(analysis *api.SecurityAnalysis, consoleURL string) string
- func FormatInlineComment(issue api.CodeMitigationItem) string
- func SanitizePath(path string) string
- type AnalysisCommentData
- type CommentResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForIssues ¶
func CheckForIssues(analysis *api.SecurityAnalysis) (bool, int)
CheckForIssues determines if there are issues to report
func FormatComment ¶
func FormatComment(analysis *api.SecurityAnalysis, consoleURL string) string
FormatComment creates a markdown comment from analysis results using the shared template
func FormatCommentFallback ¶
func FormatCommentFallback(analysis *api.SecurityAnalysis, consoleURL string) string
FormatCommentFallback provides a basic format if template rendering fails
func FormatInlineComment ¶
func FormatInlineComment(issue api.CodeMitigationItem) string
FormatInlineComment creates the message for an inline code comment Includes a hidden marker for duplicate detection
func SanitizePath ¶
SanitizePath ensures the path is in the correct format for APIs
Types ¶
type AnalysisCommentData ¶
type AnalysisCommentData struct {
FinalAnalysis *api.SecurityAnalysis
ConsoleURL string
}
AnalysisCommentData holds the data for the analysis comment template
Click to show internal directories.
Click to hide internal directories.