Skip to content

Commit c0afd0d

Browse files
committed
changed tdetect reference to blackduck
1 parent c1d6af9 commit c0afd0d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

examples/client/batch_generate_sbom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def sanitize_filename(filename):
262262

263263
def parse_command_args():
264264

265-
parser = argparse.ArgumentParser("Generate and download reports for projets in a spreadsheet")
265+
parser = argparse.ArgumentParser("Generate and download reports for projects in a spreadsheet")
266266
parser.add_argument("-u", "--base-url", required=True, help="Hub server URL e.g. https://your.blackduck.url")
267267
parser.add_argument("-t", "--token-file", required=True, help="File containing access token")
268268
parser.add_argument("-i", "--input-file", required=True, help="Project Name")

examples/client/generate_sbom.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def download_report(bd_client, location, filename, retries=args.retries):
116116
logging.debug("Authorization Error - Please ensure the token you are using has write permissions!")
117117
r.raise_for_status()
118118
location = r.headers.get('Location')
119+
print(f"location {location}")
119120
assert location, "Hmm, this does not make sense. If we successfully created a report then there needs to be a location where we can get it from"
120121

121122
logging.debug(f"Created SBOM report of type {args.type} for project {args.project_name}, version {args.version_name} at location {location}")

examples/scan_docker_image_lite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def __init__(self, hub):
205205
# self.detecturl = 'https://detect.synopsys.com/detect.sh'
206206
# self.detecturl = 'https://detect.synopsys.com/detect7.sh'
207207
# self.detecturl = 'https://detect.synopsys.com/detect8.sh'
208-
self.detecturl = 'https://detect.synopsys.com/detect9.sh'
208+
self.detecturl = 'https://detect.blackduck.com/detect9.sh'
209209
self.baseurl = hub.config['baseurl']
210210
self.filename = '/tmp/hub-detect.sh'
211211
self.token=hub.config['api_token']

0 commit comments

Comments
 (0)