-
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.
feat: restructured pillager for modularity and expansion
- Loading branch information
1 parent
9156c1e
commit 60cdded
Showing
23 changed files
with
773 additions
and
314 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
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,4 +1,4 @@ | ||
FROM golang:1.17-alpine | ||
FROM golang:1.21-alpine | ||
|
||
WORKDIR /src/ | ||
COPY . /src/ | ||
|
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 was deleted.
Oops, something went wrong.
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,28 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"runtime" | ||
|
||
"github.com/brittonhayes/pillager" | ||
"github.com/brittonhayes/pillager/pkg/scanner" | ||
) | ||
|
||
func main() { | ||
// Set scanner options | ||
opts := pillager.Options{ | ||
Path: ".", | ||
Workers: runtime.NumCPU(), | ||
Reporter: "json", | ||
Redact: true, | ||
} | ||
|
||
// Create a new gitleaks scanner | ||
s, _ := scanner.NewGitleaksScanner(opts) | ||
|
||
// Scan the current directory | ||
results, _ := s.Scan(opts.Path) | ||
|
||
// Report results | ||
fmt.Println(results) | ||
} |
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,6 +1,6 @@ | ||
module github.com/brittonhayes/pillager | ||
|
||
go 1.18 | ||
go 1.21 | ||
|
||
require ( | ||
github.com/BurntSushi/toml v1.1.0 | ||
|
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
Oops, something went wrong.