-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Britton Hayes <[email protected]>
- Loading branch information
1 parent
58c1ea6
commit a58d4dd
Showing
11 changed files
with
190 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
[ | ||
{ | ||
"line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", | ||
"lineNumber": 5, | ||
"offender": "AKIAIO5FODNN7EXAMPLE", | ||
"commit": "", | ||
"repo": "", | ||
"repoURL": "", | ||
"leakURL": "", | ||
"rule": "AWS Access Key", | ||
"commitMessage": "", | ||
"author": "", | ||
"email": "", | ||
"file": "../test_data/test_repos/test_dir_1/server.test.py", | ||
"date": "0001-01-01T00:00:00Z", | ||
"tags": "key, AWS" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package cmd | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/spf13/cobra" | ||
) | ||
|
||
func init() { | ||
rootCmd.AddCommand(versionCmd) | ||
} | ||
|
||
var version = "x.x.x" | ||
|
||
var versionCmd = &cobra.Command{ | ||
Use: "version", | ||
Short: "Print the version of Pillager", | ||
Run: func(cmd *cobra.Command, args []string) { | ||
fmt.Printf("pillager v%s\n", version) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Pillager - Scan Results</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"> | ||
<link rel="stylesheet" href="https://unpkg.com/bulmaswatch/superhero/bulmaswatch.min.css"> | ||
</head> | ||
<body> | ||
<section class="section"> | ||
|
@@ -22,7 +22,9 @@ | |
<p class="is-size-4">{{.File}}</p> | ||
<p> | ||
<span class="has-text-weight-bold">Tags:</span> | ||
<span class="tag">{{.Tags}}</span> | ||
<span class="tag"> | ||
<code>{{.Tags}}</code> | ||
</span> | ||
</p> | ||
<p> | ||
<span class="has-text-weight-bold">Leak:</span> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{{ range .Leaks}} | ||
Leak: {{.Line}} | ||
Line: {{.LineNumber}} | ||
{{ range .Leaks -}} | ||
File: {{ .File }} | ||
{{end}} | ||
Line: {{.LineNumber}} | ||
Offender: {{ .Offender }} | ||
{{ end -}} |