Compare commits

...
13 Commits
Author SHA1 Message Date
zricethezav e7fbcf5333 updating readme and comments 2020-02-01 16:48:05 -05:00
Zachary Rice 2810eccc82 Merge pull request #329 from zricethezav/bug/commit-scan
Bug/commit scan
2020-02-01 11:38:02 -05:00
zricethezav baff419091 removing hooks 2020-02-01 11:23:11 -05:00
zricethezav d13e0fdfde adding more tests 2020-02-01 11:18:27 -05:00
zricethezav 5a300c3c64 fixing --commit bug, adding --files-at-commit option 2020-01-30 20:08:01 -05:00
Zachary Rice d8ddb9630a Merge pull request #327 from zricethezav/bug/timeoutcancel
Adding timeout check in context select so we dont log erroneously
2020-01-24 18:16:59 -05:00
zricethezav 1537eeb5fa Adding timeout check in context select so we dont log erroneously 2020-01-24 18:07:16 -05:00
Zachary Rice 1a492537dd Merge pull request #325 from zricethezav/bug/timeoutcancel
defer cancel in audit
2020-01-23 18:52:56 -05:00
zricethezav bd4107b002 ensuring cancel is called after audit is complete so context can be dropped 2020-01-23 18:47:37 -05:00
Zach Rice 7b48cadf6d fixing version loading in makefile 2020-01-22 20:42:14 -05:00
Zachary Rice 6eab8a7a0a Update README.md 2020-01-22 20:00:27 -05:00
Zachary Rice c6d14e5b7d Merge pull request #323 from zricethezav/bug/fix-go-module
fixing modules, adding v3 in path
2020-01-22 18:10:23 -05:00
zricethezav ce95cafd54 fixing modules, adding v3 in path 2020-01-22 10:21:00 -05:00
45 changed files with 343 additions and 109 deletions

No files matched your search

+1
View File
@@ -7,6 +7,7 @@
*.DS_STORE
*.idea
gitleaks
build
# Test binary
*.out
+2 -2
View File
@@ -2,8 +2,8 @@
VERSION := `git fetch --tags && git tag | sort -V | tail -1`
PKG=github.com/zricethezav/gitleaks
LDFLAGS=-ldflags "-X=github.com/zricethezav/gitleaks/version.Version=$(VERSION)"
_LDFLAGS="github.com/zricethezav/gitleaks/version.Version=$(VERSION)"
LDFLAGS=-ldflags "-X=github.com/zricethezav/gitleaks/v3/version.Version=$(VERSION)"
_LDFLAGS="github.com/zricethezav/gitleaks/v3/version.Version=$(VERSION)"
COVER=--cover --coverprofile=cover.out
test-cover:
+35 -35
View File
@@ -41,9 +41,9 @@ docker pull zricethezav/gitleaks
```
#### Go
Ensure `GO111MODULE=on` is set as an env var
```bash
go get -u github.com/zricethezav/gitleaks
go get github.com/zricethezav/gitleaks/v3@latest
```
## Usage
@@ -55,42 +55,42 @@ Usage:
gitleaks [OPTIONS]
Application Options:
-v, --verbose Show verbose output from audit
-r, --repo= Target repository
--config= config path
--disk Clones repo(s) to disk
--version version number
--username= Username for git repo
--password= Password for git repo
--access-token= Access token for git repo
--commit= sha of commit to audit
--threads= Maximum number of threads gitleaks spawns
--ssh-key= path to ssh key used for auth
--uncommitted run gitleaks on uncommitted code
--repo-path= Path to repo
--owner-path= Path to owner directory (repos discovered)
--branch= Branch to audit
--report= path to write json leaks file
--report-format= json or csv (default: json)
--redact redact secrets from log messages and leaks
--debug log debug messages
--repo-config Load config from target repo. Config file must be ".gitleaks.toml" or "gitleaks.toml"
--pretty Pretty print json if leaks are present
--commit-from= Commit to start audit from
--commit-to= Commit to stop audit
--timeout= Time allowed per audit. Ex: 10us, 30s, 1m, 1h10m1s
--depth= Number of commits to audit
-v, --verbose Show verbose output from audit
-r, --repo= Target repository
--config= config path
--disk Clones repo(s) to disk
--version version number
--username= Username for git repo
--password= Password for git repo
--access-token= Access token for git repo
--commit= sha of commit to audit
--files-at-commit= sha of commit to audit all files at commit
--threads= Maximum number of threads gitleaks spawns
--ssh-key= path to ssh key used for auth
--uncommitted run gitleaks on uncommitted code
--repo-path= Path to repo
--owner-path= Path to owner directory (repos discovered)
--branch= Branch to audit
--report= path to write json leaks file
--report-format= json or csv (default: json)
--redact redact secrets from log messages and leaks
--debug log debug messages
--repo-config Load config from target repo. Config file must be ".gitleaks.toml" or "gitleaks.toml"
--pretty Pretty print json if leaks are present
--commit-from= Commit to start audit from
--commit-to= Commit to stop audit
--timeout= Time allowed per audit. Ex: 10us, 30s, 1m, 1h10m1s
--depth= Number of commits to audit
--host= git hosting service like gitlab or github. Supported hosts include: Github, Gitlab
--baseurl= Base URL for API requests. Defaults to the public GitLab or GitHub API, but can be set to a domain endpoint to use with a self hosted server.
--org= organization to audit
--user= user to audit
--pr= pull/merge request url
--exclude-forks audit excludes forks
--host= git hosting service like gitlab or github. Supported hosts include: Github, Gitlab
--baseurl= Base URL for API requests. Defaults to the public GitLab or GitHub API, but can be set to a domain endpoint to use with a self hosted server.
--org= organization to audit
--user= user to audit
--pr= pull/merge request url
--exclude-forks audit excludes forks
Help Options:
-h, --help Show this help message
-h, --help Show this help message
```
### Docker usage examples
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"io/ioutil"
"path"
"github.com/zricethezav/gitleaks/manager"
"github.com/zricethezav/gitleaks/v3/manager"
log "github.com/sirupsen/logrus"
)
+23 -3
View File
@@ -10,9 +10,9 @@ import (
"sort"
"testing"
"github.com/zricethezav/gitleaks/config"
"github.com/zricethezav/gitleaks/manager"
"github.com/zricethezav/gitleaks/options"
"github.com/zricethezav/gitleaks/v3/config"
"github.com/zricethezav/gitleaks/v3/manager"
"github.com/zricethezav/gitleaks/v3/options"
"github.com/sergi/go-diff/diffmatchpatch"
)
@@ -243,6 +243,26 @@ func TestAudit(t *testing.T) {
},
wantPath: "../test_data/test_local_owner_aws_leak_depth_2.json",
},
{
description: "test local repo five files at commit",
opts: options.Options{
RepoPath: "../test_data/test_repos/test_repo_5",
Report: "../test_data/test_local_repo_five_files_at_commit.json.got",
FilesAtCommit: "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0",
ReportFormat: "json",
},
wantPath: "../test_data/test_local_repo_five_files_at_commit.json",
},
{
description: "test local repo five at commit",
opts: options.Options{
RepoPath: "../test_data/test_repos/test_repo_5",
Report: "../test_data/test_local_repo_five_commit.json.got",
Commit: "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0",
ReportFormat: "json",
},
wantPath: "../test_data/test_local_repo_five_commit.json",
},
}
for _, test := range tests {
+14 -16
View File
@@ -12,8 +12,8 @@ import (
"sync"
"time"
"github.com/zricethezav/gitleaks/config"
"github.com/zricethezav/gitleaks/manager"
"github.com/zricethezav/gitleaks/v3/config"
"github.com/zricethezav/gitleaks/v3/manager"
"github.com/BurntSushi/toml"
"github.com/sergi/go-diff/diffmatchpatch"
@@ -217,6 +217,9 @@ func (repo *Repo) Audit() error {
if err := repo.setupTimeout(); err != nil {
return err
}
if repo.cancel != nil {
defer repo.cancel()
}
if repo.Repository == nil {
return fmt.Errorf("%s repo is empty", repo.Name)
@@ -233,19 +236,12 @@ func (repo *Repo) Audit() error {
auditTimeStart := time.Now()
// audit single Commit
// audit commit patches OR all files at commit. See https://github.com/zricethezav/gitleaks/issues/326
// TODO having --commit= and --files-at-commit= set should probably be guarded against
if repo.Manager.Opts.Commit != "" {
h := plumbing.NewHash(repo.Manager.Opts.Commit)
c, err := repo.CommitObject(h)
if err != nil {
return err
}
err = inspectCommit(c, repo)
if err != nil {
return err
}
return nil
return inspectCommit(repo.Manager.Opts.Commit, repo, inspectCommitPatches)
} else if repo.Manager.Opts.FilesAtCommit != "" {
return inspectCommit(repo.Manager.Opts.FilesAtCommit, repo, inspectFilesAtCommit)
}
logOpts, err := getLogOptions(repo)
@@ -268,7 +264,7 @@ func (repo *Repo) Audit() error {
if len(c.ParentHashes) == 0 {
cc++
err = inspectCommit(c, repo)
err = inspectFilesAtCommit(c, repo)
if err != nil {
return err
}
@@ -388,7 +384,9 @@ func (repo *Repo) setupTimeout() error {
go func() {
select {
case <-repo.ctx.Done():
log.Warnf("Timeout deadline exceeded: %s", timeout.String())
if repo.timeoutReached() {
log.Warnf("Timeout deadline (%s) exceeded for %s", timeout.String(), repo.Name)
}
}
}()
return nil
+53 -4
View File
@@ -8,8 +8,8 @@ import (
"strings"
"time"
"github.com/zricethezav/gitleaks/config"
"github.com/zricethezav/gitleaks/manager"
"github.com/zricethezav/gitleaks/v3/config"
"github.com/zricethezav/gitleaks/v3/manager"
log "github.com/sirupsen/logrus"
"gopkg.in/src-d/go-git.v4"
@@ -255,11 +255,60 @@ func InspectString(content string, c *object.Commit, repo *Repo, filename string
}
}
// inspectCommit accepts a commit object and a repo. This function is only called when the --commit=
type commitInspector func(c *object.Commit, repo *Repo) error
// inspectCommit accepts a commit hash, repo, and commit inspecting function. A new commit
// object will be created from the hash which will be passed into either inspectCommitPatches
// or inspectFilesAtCommit depending on the options set.
func inspectCommit(hash string, repo *Repo, f commitInspector) error {
h := plumbing.NewHash(hash)
c, err := repo.CommitObject(h)
if err != nil {
return err
}
return f(c, repo)
}
// inspectCommitPatches accepts a commit object and a repo. This function is only called when the --commit=
// option has been set. That option tells gitleaks to look only at a single commit and check the contents
// of said commit. Similar to inspectPatch(), if the files contained in the commit are a binaries or if they are
// whitelisted then those files will be skipped.
func inspectCommit(c *object.Commit, repo *Repo) error {
func inspectCommitPatches(c *object.Commit, repo *Repo) error {
if len(c.ParentHashes) == 0 {
err := inspectFilesAtCommit(c, repo)
if err != nil {
return err
}
}
return c.Parents().ForEach(func(parent *object.Commit) error {
defer func() {
if err := recover(); err != nil {
// sometimes the patch generation will fail due to a known bug in
// sergi's go-diff: https://github.com/sergi/go-diff/issues/89.
// Once a fix has been merged I will remove this recover.
return
}
}()
if repo.timeoutReached() {
return nil
}
start := time.Now()
patch, err := c.Patch(parent)
if err != nil {
return fmt.Errorf("could not generate patch")
}
repo.Manager.RecordTime(manager.PatchTime(howLong(start)))
inspectPatch(patch, c, repo)
return nil
})
}
// inspectFilesAtCommit accepts a commit object and a repo. This function is only called when the --files-at-commit=
// option has been set. That option tells gitleaks to look only at ALL the files at a commit and check the contents
// of said commit. Similar to inspectPatch(), if the files contained in the commit are a binaries or if they are
// whitelisted then those files will be skipped.
func inspectFilesAtCommit(c *object.Commit, repo *Repo) error {
fIter, err := c.Files()
if err != nil {
return err
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"strconv"
"strings"
"github.com/zricethezav/gitleaks/options"
"github.com/zricethezav/gitleaks/v3/options"
"github.com/BurntSushi/toml"
)
+1 -1
View File
@@ -2,7 +2,7 @@ package config
import (
"fmt"
"github.com/zricethezav/gitleaks/options"
"github.com/zricethezav/gitleaks/v3/options"
"regexp"
"testing"
)
+1 -1
View File
@@ -1,4 +1,4 @@
module github.com/zricethezav/gitleaks
module github.com/zricethezav/gitleaks/v3
go 1.13
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"strings"
"sync"
"github.com/zricethezav/gitleaks/audit"
"github.com/zricethezav/gitleaks/manager"
"github.com/zricethezav/gitleaks/options"
"github.com/zricethezav/gitleaks/v3/audit"
"github.com/zricethezav/gitleaks/v3/manager"
"github.com/zricethezav/gitleaks/v3/options"
"github.com/google/go-github/github"
log "github.com/sirupsen/logrus"
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"context"
"sync"
"github.com/zricethezav/gitleaks/audit"
"github.com/zricethezav/gitleaks/manager"
"github.com/zricethezav/gitleaks/options"
"github.com/zricethezav/gitleaks/v3/audit"
"github.com/zricethezav/gitleaks/v3/manager"
"github.com/zricethezav/gitleaks/v3/options"
log "github.com/sirupsen/logrus"
"github.com/xanzy/go-gitlab"
+1 -1
View File
@@ -1,7 +1,7 @@
package hosts
import (
"github.com/zricethezav/gitleaks/manager"
"github.com/zricethezav/gitleaks/v3/manager"
"strings"
)
+3 -3
View File
@@ -3,9 +3,9 @@ package hosts
import (
"flag"
"fmt"
"github.com/zricethezav/gitleaks/config"
"github.com/zricethezav/gitleaks/manager"
"github.com/zricethezav/gitleaks/options"
"github.com/zricethezav/gitleaks/v3/config"
"github.com/zricethezav/gitleaks/v3/manager"
"github.com/zricethezav/gitleaks/v3/options"
"os"
"testing"
)
+5 -5
View File
@@ -5,11 +5,11 @@ import (
"os"
"time"
"github.com/zricethezav/gitleaks/audit"
"github.com/zricethezav/gitleaks/config"
"github.com/zricethezav/gitleaks/hosts"
"github.com/zricethezav/gitleaks/manager"
"github.com/zricethezav/gitleaks/options"
"github.com/zricethezav/gitleaks/v3/audit"
"github.com/zricethezav/gitleaks/v3/config"
"github.com/zricethezav/gitleaks/v3/hosts"
"github.com/zricethezav/gitleaks/v3/manager"
"github.com/zricethezav/gitleaks/v3/options"
"github.com/hako/durafmt"
log "github.com/sirupsen/logrus"
+2 -2
View File
@@ -13,8 +13,8 @@ import (
"text/tabwriter"
"time"
"github.com/zricethezav/gitleaks/config"
"github.com/zricethezav/gitleaks/options"
"github.com/zricethezav/gitleaks/v3/config"
"github.com/zricethezav/gitleaks/v3/options"
"github.com/hako/durafmt"
"github.com/mattn/go-colorable"
+2 -2
View File
@@ -3,8 +3,8 @@ package manager
import (
"crypto/rand"
"fmt"
"github.com/zricethezav/gitleaks/config"
"github.com/zricethezav/gitleaks/options"
"github.com/zricethezav/gitleaks/v3/config"
"github.com/zricethezav/gitleaks/v3/options"
"io"
"testing"
)
+27 -26
View File
@@ -7,7 +7,7 @@ import (
"os/user"
"strings"
"github.com/zricethezav/gitleaks/version"
"github.com/zricethezav/gitleaks/v3/version"
"github.com/jessevdk/go-flags"
log "github.com/sirupsen/logrus"
@@ -27,31 +27,32 @@ const (
// Options stores values of command line options
type Options struct {
Verbose bool `short:"v" long:"verbose" description:"Show verbose output from audit"`
Repo string `short:"r" long:"repo" description:"Target repository"`
Config string `long:"config" description:"config path"`
Disk bool `long:"disk" description:"Clones repo(s) to disk"`
Version bool `long:"version" description:"version number"`
Username string `long:"username" description:"Username for git repo"`
Password string `long:"password" description:"Password for git repo"`
AccessToken string `long:"access-token" description:"Access token for git repo"`
Commit string `long:"commit" description:"sha of commit to audit"`
Threads int `long:"threads" description:"Maximum number of threads gitleaks spawns"`
SSH string `long:"ssh-key" description:"path to ssh key used for auth"`
Uncommited bool `long:"uncommitted" description:"run gitleaks on uncommitted code"`
RepoPath string `long:"repo-path" description:"Path to repo"`
OwnerPath string `long:"owner-path" description:"Path to owner directory (repos discovered)"`
Branch string `long:"branch" description:"Branch to audit"`
Report string `long:"report" description:"path to write json leaks file"`
ReportFormat string `long:"report-format" default:"json" description:"json or csv"`
Redact bool `long:"redact" description:"redact secrets from log messages and leaks"`
Debug bool `long:"debug" description:"log debug messages"`
RepoConfig bool `long:"repo-config" description:"Load config from target repo. Config file must be \".gitleaks.toml\" or \"gitleaks.toml\""`
PrettyPrint bool `long:"pretty" description:"Pretty print json if leaks are present"`
CommitFrom string `long:"commit-from" description:"Commit to start audit from"`
CommitTo string `long:"commit-to" description:"Commit to stop audit"`
Timeout string `long:"timeout" description:"Time allowed per audit. Ex: 10us, 30s, 1m, 1h10m1s"`
Depth int `long:"depth" description:"Number of commits to audit"`
Verbose bool `short:"v" long:"verbose" description:"Show verbose output from audit"`
Repo string `short:"r" long:"repo" description:"Target repository"`
Config string `long:"config" description:"config path"`
Disk bool `long:"disk" description:"Clones repo(s) to disk"`
Version bool `long:"version" description:"version number"`
Username string `long:"username" description:"Username for git repo"`
Password string `long:"password" description:"Password for git repo"`
AccessToken string `long:"access-token" description:"Access token for git repo"`
Commit string `long:"commit" description:"sha of commit to audit"`
FilesAtCommit string `long:"files-at-commit" description:"sha of commit to audit all files at commit"`
Threads int `long:"threads" description:"Maximum number of threads gitleaks spawns"`
SSH string `long:"ssh-key" description:"path to ssh key used for auth"`
Uncommited bool `long:"uncommitted" description:"run gitleaks on uncommitted code"`
RepoPath string `long:"repo-path" description:"Path to repo"`
OwnerPath string `long:"owner-path" description:"Path to owner directory (repos discovered)"`
Branch string `long:"branch" description:"Branch to audit"`
Report string `long:"report" description:"path to write json leaks file"`
ReportFormat string `long:"report-format" default:"json" description:"json or csv"`
Redact bool `long:"redact" description:"redact secrets from log messages and leaks"`
Debug bool `long:"debug" description:"log debug messages"`
RepoConfig bool `long:"repo-config" description:"Load config from target repo. Config file must be \".gitleaks.toml\" or \"gitleaks.toml\""`
PrettyPrint bool `long:"pretty" description:"Pretty print json if leaks are present"`
CommitFrom string `long:"commit-from" description:"Commit to start audit from"`
CommitTo string `long:"commit-to" description:"Commit to stop audit"`
Timeout string `long:"timeout" description:"Time allowed per audit. Ex: 10us, 30s, 1m, 1h10m1s"`
Depth int `long:"depth" description:"Number of commits to audit"`
// Hosts
Host string `long:"host" description:"git hosting service like gitlab or github. Supported hosts include: Github, Gitlab"`
+39
View File
@@ -232,5 +232,44 @@
"file": "secrets.md",
"date": "2019-10-25T13:35:03-04:00",
"tags": "key, API, generic"
},
{
"line": "\nmore_secrets = '99432bfewaf823ec3294e231'",
"offender": "secrets = '99432bfewaf823ec3294e231'",
"commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0",
"repo": "test_repo_5",
"rule": "Generic Credential",
"commitMessage": "even more secrets\n",
"author": "Zach Rice",
"email": "zrice@gitlab.com",
"file": "secrets.py",
"date": "2020-02-01T10:30:22-05:00",
"tags": "key, API, generic"
},
{
"line": "\naws_access_key_id='AKIAIO5FODNN7EXAMPL2'",
"offender": "AKIAIO5FODNN7EXAMPL2",
"commit": "ca71fcdeda15f25f0cc661d90e8785c255925c27",
"repo": "test_repo_5",
"rule": "AWS Manager ID",
"commitMessage": "introduce more secrets\n",
"author": "Zach Rice",
"email": "zrice@gitlab.com",
"file": "secrets.py",
"date": "2020-02-01T10:08:04-05:00",
"tags": "key, AWS"
},
{
"line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE'",
"offender": "AKIAIO5FODNN7EXAMPLE",
"commit": "1f2a4abc47dabf991e6af6f9770867ce0ac1f360",
"repo": "test_repo_5",
"rule": "AWS Manager ID",
"commitMessage": "introduce secrets\n",
"author": "Zach Rice",
"email": "zrice@gitlab.com",
"file": "secrets.py",
"date": "2020-02-01T10:07:34-05:00",
"tags": "key, AWS"
}
]
@@ -115,5 +115,31 @@
"file": "secrets.md",
"date": "2019-10-25T13:54:08-04:00",
"tags": "key, API, generic"
},
{
"line": "\nmore_secrets = '99432bfewaf823ec3294e231'",
"offender": "secrets = '99432bfewaf823ec3294e231'",
"commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0",
"repo": "test_repo_5",
"rule": "Generic Credential",
"commitMessage": "even more secrets\n",
"author": "Zach Rice",
"email": "zrice@gitlab.com",
"file": "secrets.py",
"date": "2020-02-01T10:30:22-05:00",
"tags": "key, API, generic"
},
{
"line": "\naws_access_key_id='AKIAIO5FODNN7EXAMPL2'",
"offender": "AKIAIO5FODNN7EXAMPL2",
"commit": "ca71fcdeda15f25f0cc661d90e8785c255925c27",
"repo": "test_repo_5",
"rule": "AWS Manager ID",
"commitMessage": "introduce more secrets\n",
"author": "Zach Rice",
"email": "zrice@gitlab.com",
"file": "secrets.py",
"date": "2020-02-01T10:08:04-05:00",
"tags": "key, AWS"
}
]
@@ -0,0 +1,15 @@
[
{
"line": "\nmore_secrets = '99432bfewaf823ec3294e231'",
"offender": "secrets = '99432bfewaf823ec3294e231'",
"commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0",
"repo": "test_repo_5",
"rule": "Generic Credential",
"commitMessage": "even more secrets\n",
"author": "Zach Rice",
"email": "zrice@gitlab.com",
"file": "secrets.py",
"date": "2020-02-01T10:30:22-05:00",
"tags": "key, API, generic"
}
]
@@ -0,0 +1,41 @@
[
{
"line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE'",
"offender": "AKIAIO5FODNN7EXAMPLE",
"commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0",
"repo": "test_repo_5",
"rule": "AWS Manager ID",
"commitMessage": "even more secrets\n",
"author": "Zach Rice",
"email": "zrice@gitlab.com",
"file": "secrets.py",
"date": "2020-02-01T10:30:22-05:00",
"tags": "key, AWS"
},
{
"line": "aws_access_key_id='AKIAIO5FODNN7EXAMPL2'",
"offender": "AKIAIO5FODNN7EXAMPL2",
"commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0",
"repo": "test_repo_5",
"rule": "AWS Manager ID",
"commitMessage": "even more secrets\n",
"author": "Zach Rice",
"email": "zrice@gitlab.com",
"file": "secrets.py",
"date": "2020-02-01T10:30:22-05:00",
"tags": "key, AWS"
},
{
"line": "more_secrets = '99432bfewaf823ec3294e231'",
"offender": "secrets = '99432bfewaf823ec3294e231'",
"commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0",
"repo": "test_repo_5",
"rule": "Generic Credential",
"commitMessage": "even more secrets\n",
"author": "Zach Rice",
"email": "zrice@gitlab.com",
"file": "secrets.py",
"date": "2020-02-01T10:30:22-05:00",
"tags": "key, API, generic"
}
]
@@ -0,0 +1 @@
even more secrets
@@ -0,0 +1 @@
ref: refs/heads/master
@@ -0,0 +1,7 @@
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
@@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.
Binary file not shown.
@@ -0,0 +1,6 @@
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
@@ -0,0 +1,4 @@
0000000000000000000000000000000000000000 547bc0caa26ce3f20bea9ad9bb0f7e3e9dc749ec Zach Rice <zrice@gitlab.com> 1580490269 -0500 commit (initial): init
547bc0caa26ce3f20bea9ad9bb0f7e3e9dc749ec 1f2a4abc47dabf991e6af6f9770867ce0ac1f360 Zach Rice <zrice@gitlab.com> 1580569654 -0500 commit: introduce secrets
1f2a4abc47dabf991e6af6f9770867ce0ac1f360 ca71fcdeda15f25f0cc661d90e8785c255925c27 Zach Rice <zrice@gitlab.com> 1580569684 -0500 commit: introduce more secrets
ca71fcdeda15f25f0cc661d90e8785c255925c27 a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0 Zach Rice <zrice@gitlab.com> 1580571022 -0500 commit: even more secrets
@@ -0,0 +1,4 @@
0000000000000000000000000000000000000000 547bc0caa26ce3f20bea9ad9bb0f7e3e9dc749ec Zach Rice <zrice@gitlab.com> 1580490269 -0500 commit (initial): init
547bc0caa26ce3f20bea9ad9bb0f7e3e9dc749ec 1f2a4abc47dabf991e6af6f9770867ce0ac1f360 Zach Rice <zrice@gitlab.com> 1580569654 -0500 commit: introduce secrets
1f2a4abc47dabf991e6af6f9770867ce0ac1f360 ca71fcdeda15f25f0cc661d90e8785c255925c27 Zach Rice <zrice@gitlab.com> 1580569684 -0500 commit: introduce more secrets
ca71fcdeda15f25f0cc661d90e8785c255925c27 a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0 Zach Rice <zrice@gitlab.com> 1580571022 -0500 commit: even more secrets
@@ -0,0 +1,2 @@
x•ŽM
Â0F]繀’ß&ĎŕŇÝĚdb¶•4ÝxzsW<xĽŹ¶e©]cN˝1˨�±™°” MA«ĽĆ’µˇ�0;ŚĹŻ]z��‰ŘŁ�!AN�޶ś2—�}Ţš|ÍňQ‰ĺőŰĆÜ_µż/´-7©}T~J“wň¬ĽRbĐń®óżž¨ko[>FfgjÜwń;ěH�
@@ -0,0 +1,4 @@
x•�A
‚!F[{й@1ú«)Dt†–ítû…L�iÓéó
­>xðÞG£÷& ½>Èd*¶š’3ç@hü‘μéZB$olEçL.dTúÈ>&<ípoÄpùÎ5·g“WÊ'ý
Ú´qe"Ñ!ªE×›ð¿žjï&êÚQ3–
@@ -0,0 +1,2 @@
x•ŽA
Â0E]çse2Í$-ˆx—îÒéÄl#itáéÍ\=xŸ_òº.ˆèP‹*$% .29¥ë1«O®␍ê58ï�Ìæ‹n$›dÒ)ZNÄ E¼·Ó€Ú‡ž¥Å5ßuÎîQf¸-¢pþ–†ëc©Ï8ž$¯°Ü#‹DpDF4ͶwUÿíŒ~tƒ5…]¥hÝÍ\ïES
@@ -0,0 +1 @@
x•ŽAj1 E»ö)t�yì‘l(¥gȲ;Y–“�N\g“Óg®ÐÕ‡�÷µïû6aYøc3Xk)![ñ)�ÊZ#'Zjð>ÇbèþdØ}‚o‹D)¹Ji9{#iÔ23&b5õ-:yÎ[ð#zƒË¦Ÿ¯qÌ÷u›¿RÎÚ÷/ðk•2¥'\ÝA�wÓþë¹í>G¯Ï#³÷að06î␍ÿGó
@@ -0,0 +1 @@
a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0
@@ -0,0 +1 @@
Init
@@ -0,0 +1,9 @@
aws_access_key_id='AKIAIO5FODNN7EXAMPLE'
print(aws_access_key_id)
aws_access_key_id='AKIAIO5FODNN7EXAMPL2'
print(aws_access_key_id)
more_secrets = '99432bfewaf823ec3294e231'
print(more_secrets)