Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1299833

Browse files
XIANJUN ZHUjustineyster
XIANJUN ZHU
authored andcommittedSep 9, 2020
One more regex for iam (Yelp#317)
1 parent 2dd83ad commit 1299833

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎detect_secrets/plugins/ibm_cloud_iam.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class IbmCloudIamDetector(RegexBasedDetector):
2626
),
2727
]
2828

29-
def verify(self, token, **kwargs):
29+
def verify(self, token, *args, **kwargs):
3030
response = verify_cloud_iam_api_key(token)
3131
try:
3232
if response.status_code != 200:

‎tests/plugins/ibm_cloud_iam_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class TestIbmCloudIamDetector(object):
1515
'payload, should_flag',
1616
[
1717
('ibm-cloud_api_key: {cloud_iam_key}'.format(cloud_iam_key=CLOUD_IAM_KEY), True),
18+
('apikeyid: {cloud_iam_key}'.format(cloud_iam_key=CLOUD_IAM_KEY), True),
1819
('ibm_cloud_iam-key : {cloud_iam_key}'.format(cloud_iam_key=CLOUD_IAM_KEY), True),
1920
('IBM-API-KEY : "{cloud_iam_key}"'.format(cloud_iam_key=CLOUD_IAM_KEY), True),
2021
('"iam_api_key" : "{cloud_iam_key}"'.format(cloud_iam_key=CLOUD_IAM_KEY), True),

0 commit comments

Comments
 (0)
Please sign in to comment.