Skip to content

Commit

Permalink
Merge pull request #144 from IBM/update_failing_build_logic
Browse files Browse the repository at this point in the history
Update makefile to remove Artifactory references
  • Loading branch information
williamsbritt authored Dec 21, 2023
2 parents 58f54db + f86b24f commit cb803c6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions Makefile.ibm
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ DOCKER_REGISTRY_ICR := icr.io
DOCKER_USER_ICR := iamapikey
DOCKER_PASS_ICR := $(IBM_CLOUD_API_KEY)

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

DOCKER_IMAGES_TO_TAG := detect-secrets detect-secrets-hook
DOCKER_IMAGES_TO_SCAN := detect-secrets detect-secrets-hook detect-secrets:redhat-ubi detect-secrets:redhat-ubi-custom
DOCKER_IMAGES_TO_PUBLISH :=
DOCKER_REGISTRIES := $(DOCKER_REGISTRY_ICR) $(DOCKER_REGISTRY_ART)
DOCKER_REGISTRIES := $(DOCKER_REGISTRY_ICR)

IMAGE_NAME :=
DOCKER_REGISTRY :=
Expand Down Expand Up @@ -87,7 +87,7 @@ docker-build-images:
done

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

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

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

publish-cos:
Expand Down
2 changes: 1 addition & 1 deletion tests/core/baseline_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

class TestInitializeBaseline:

def setup(self):
def setup_method(self):
self.plugins = (
Base64HighEntropyString(4.5),
HexHighEntropyString(3),
Expand Down
2 changes: 1 addition & 1 deletion tests/core/secrets_collection_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class TestBaselineInputOutput:
related to that ability.
"""

def setup(self):
def setup_method(self):
self.logic = secrets_collection_factory(
secrets=[
{
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/aws_key_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class TestAWSKeyDetector(object):

def setup(self):
def setup_method(self):
self.example_key = 'AKIAZZZZZZZZZZZZZZZZ'

@pytest.mark.parametrize(
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/common/initialize_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_fails_on_bad_initialization(self):

class TestFromSecretType:

def setup(self):
def setup_method(self):
self.settings = [
{
'name': 'Base64HighEntropyString',
Expand Down
6 changes: 3 additions & 3 deletions tests/plugins/high_entropy_strings_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def test_entropy_upper_limit(self):

class TestRegularBase64HighEntropyStrings(HighEntropyStringsTest):

def setup(self):
def setup_method(self):
super(TestRegularBase64HighEntropyStrings, self).setup(
# Testing default limit, as suggested by truffleHog.
logic=Base64HighEntropyString(
Expand Down Expand Up @@ -238,7 +238,7 @@ def test_env_file(self):


class TestUrlSafeBase64HighEntropyStrings(HighEntropyStringsTest):
def setup(self):
def setup_method(self):
super(TestUrlSafeBase64HighEntropyStrings, self).setup(
# Testing default limit, as suggested by truffleHog.
logic=Base64HighEntropyString(
Expand Down Expand Up @@ -267,7 +267,7 @@ def calculate_shannon_entropy(self, data):

class TestHexHighEntropyStrings(HighEntropyStringsTest):

def setup(self):
def setup_method(self):
super(TestHexHighEntropyStrings, self).setup(
# Testing default limit, as suggested by truffleHog.
logic=HexHighEntropyString(
Expand Down

0 comments on commit cb803c6

Please sign in to comment.