Skip to content

Commit cb803c6

Browse files
Merge pull request #144 from IBM/update_failing_build_logic
Update makefile to remove Artifactory references
2 parents 58f54db + f86b24f commit cb803c6

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

Makefile.ibm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ DOCKER_REGISTRY_ICR := icr.io
1010
DOCKER_USER_ICR := iamapikey
1111
DOCKER_PASS_ICR := $(IBM_CLOUD_API_KEY)
1212

13-
DOCKER_REGISTRY_ART := txo-toolbox-team-docker-local.artifactory.swg-devops.com
14-
DOCKER_USER_ART := $(ART_USER_ID)
15-
DOCKER_PASS_ART := $(ART_API_KEY)
13+
# DOCKER_REGISTRY_ART := txo-toolbox-team-docker-local.artifactory.swg-devops.com
14+
# DOCKER_USER_ART := $(ART_USER_ID)
15+
# DOCKER_PASS_ART := $(ART_API_KEY)
1616

1717
DOCKER_IMAGES_TO_TAG := detect-secrets detect-secrets-hook
1818
DOCKER_IMAGES_TO_SCAN := detect-secrets detect-secrets-hook detect-secrets:redhat-ubi detect-secrets:redhat-ubi-custom
1919
DOCKER_IMAGES_TO_PUBLISH :=
20-
DOCKER_REGISTRIES := $(DOCKER_REGISTRY_ICR) $(DOCKER_REGISTRY_ART)
20+
DOCKER_REGISTRIES := $(DOCKER_REGISTRY_ICR)
2121

2222
IMAGE_NAME :=
2323
DOCKER_REGISTRY :=
@@ -87,7 +87,7 @@ docker-build-images:
8787
done
8888

8989
docker-login:
90-
@echo $(DOCKER_PASS_ART) | docker login -u $(DOCKER_USER_ART) --password-stdin $(DOCKER_REGISTRY_ART);
90+
# @echo $(DOCKER_PASS_ART) | docker login -u $(DOCKER_USER_ART) --password-stdin $(DOCKER_REGISTRY_ART);
9191
@echo $(DOCKER_PASS_ICR) | docker login -u $(DOCKER_USER_ICR) --password-stdin $(DOCKER_REGISTRY_ICR);
9292

9393
docker-publish-images: docker-login
@@ -123,7 +123,7 @@ docker-publish-image:
123123
$(COSIGN) verify --key env://COSIGN_PUBLIC_KEY "$(DOCKER_REGISTRY)/$(DOCKER_DOMAIN)/$(IMAGE_NAME)";
124124

125125
cosign-login:
126-
@echo $(DOCKER_PASS_ART) | $(COSIGN) login -u $(DOCKER_USER_ART) --password-stdin $(DOCKER_REGISTRY_ART); \
126+
# @echo $(DOCKER_PASS_ART) | $(COSIGN) login -u $(DOCKER_USER_ART) --password-stdin $(DOCKER_REGISTRY_ART); \
127127
@echo $(DOCKER_PASS_ICR) | $(COSIGN) login -u $(DOCKER_USER_ICR) --password-stdin $(DOCKER_REGISTRY_ICR);
128128

129129
publish-cos:

tests/core/baseline_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
class TestInitializeBaseline:
2424

25-
def setup(self):
25+
def setup_method(self):
2626
self.plugins = (
2727
Base64HighEntropyString(4.5),
2828
HexHighEntropyString(3),

tests/core/secrets_collection_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class TestBaselineInputOutput:
269269
related to that ability.
270270
"""
271271

272-
def setup(self):
272+
def setup_method(self):
273273
self.logic = secrets_collection_factory(
274274
secrets=[
275275
{

tests/plugins/aws_key_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class TestAWSKeyDetector(object):
1818

19-
def setup(self):
19+
def setup_method(self):
2020
self.example_key = 'AKIAZZZZZZZZZZZZZZZZ'
2121

2222
@pytest.mark.parametrize(

tests/plugins/common/initialize_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_fails_on_bad_initialization(self):
4040

4141
class TestFromSecretType:
4242

43-
def setup(self):
43+
def setup_method(self):
4444
self.settings = [
4545
{
4646
'name': 'Base64HighEntropyString',

tests/plugins/high_entropy_strings_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_entropy_upper_limit(self):
140140

141141
class TestRegularBase64HighEntropyStrings(HighEntropyStringsTest):
142142

143-
def setup(self):
143+
def setup_method(self):
144144
super(TestRegularBase64HighEntropyStrings, self).setup(
145145
# Testing default limit, as suggested by truffleHog.
146146
logic=Base64HighEntropyString(
@@ -238,7 +238,7 @@ def test_env_file(self):
238238

239239

240240
class TestUrlSafeBase64HighEntropyStrings(HighEntropyStringsTest):
241-
def setup(self):
241+
def setup_method(self):
242242
super(TestUrlSafeBase64HighEntropyStrings, self).setup(
243243
# Testing default limit, as suggested by truffleHog.
244244
logic=Base64HighEntropyString(
@@ -267,7 +267,7 @@ def calculate_shannon_entropy(self, data):
267267

268268
class TestHexHighEntropyStrings(HighEntropyStringsTest):
269269

270-
def setup(self):
270+
def setup_method(self):
271271
super(TestHexHighEntropyStrings, self).setup(
272272
# Testing default limit, as suggested by truffleHog.
273273
logic=HexHighEntropyString(

0 commit comments

Comments
 (0)