formatter

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatJSON

func FormatJSON(data interface{}) (string, error)

FormatJSON takes a report data structure and returns a JSON string representation of it.

func FormatMarkdown

func FormatMarkdown(data map[string][]Action) string

FormatMarkdown formats the actions data as a Markdown document

func FormatPolicyViolations

func FormatPolicyViolations(violations map[string][]string, policyMode string) string

Update the FormatPolicyViolations function to mention the policy mode

Types

type Action

type Action struct {
	Name string
	Uses string
}

Action represents a GitHub action usage in a repository

Jump to

Keyboard shortcuts

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