Skip to content

Commit

Permalink
fix: add support for artifactory identity tokens
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Pittner <[email protected]>
  • Loading branch information
dpittner committed Jan 5, 2023
1 parent 63375ed commit a285a86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions detect_secrets/plugins/artifactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class ArtifactoryDetector(RegexBasedDetector):
re.compile(r'(?:(?<==|:|")|(?<=\s)|(?<=^))AKC[a-zA-Z0-9]{10,}'), # api token
# artifactory encrypted passwords begin with AP[A-Z]
re.compile(r'(?:(?<==|:|")|(?<=\s)|(?<=^))AP[\dABCDEF][a-zA-Z0-9]{8,}'), # password
# artifactory identity tokens are different (base64 encoded reftkn:) and 64 chars
re.compile(r'(?:(?<==|:|")|(?<=\s)|(?<=^))cmVmdGtuOg{54,54}'), #identity token
]

artifactory_url = 'na.artifactory.swg-devops.com/artifactory'
Expand Down

0 comments on commit a285a86

Please sign in to comment.