Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckPrivate = rules.Register( rules.Rule{ AVDID: "AVD-GIT-0001", Provider: provider.GitHubProvider, Service: "repositories", ShortCode: "private", Summary: "Github repository shouldn't be public.", Impact: "Anyone can read the contents of the GitHub repository and leak IP", Resolution: "Make sensitive or commercially important repositories private", Explanation: `Github repository should be set to be private. You can do this by either setting <code>private</code> attribute to 'true' or <code>visibility</code> attribute to 'internal' or 'private'.`, Links: []string{ "https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-repository-visibility", "https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-repository-visibility#about-internal-repositories", }, Severity: severity.Critical, }, func(s *state.State) (results rules.Results) { for _, repo := range s.GitHub.Repositories { if repo.Public.IsTrue() { results.Add( "Repository is public,", repo.Public, ) } } return }, )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.