Skip to content

Commit

Permalink
update token pattern to be explicitly 73char (old) or 64char (new)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1 committed Jan 24, 2024
1 parent 3e22612 commit a4a737f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/detectors/artifactory/artifactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var (
defaultClient = common.SaneHttpClient()

// Make sure that your group is surrounded in boundary characters such as below to reduce false positives.
keyPat = regexp.MustCompile(`\b([a-zA-Z0-9]{64,73})`)
keyPat = regexp.MustCompile(`\b([a-zA-Z0-9]{73}|\b[a-zA-Z0-9]{64})`)
URLPat = regexp.MustCompile(`\b([A-Za-z0-9](?:[A-Za-z0-9\-]{0,61}[A-Za-z0-9])\.jfrog\.io)`)
)

Expand Down

0 comments on commit a4a737f

Please sign in to comment.