Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Long committed Mar 8, 2024
1 parent a08a59a commit 595515e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions entrypoint/entrypoint/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ def set_github_output(key, value):
encoded = base64.b64encode(compressed_contents).decode()
value = encoded

return os.system(f'echo "{key}={value}" >> "$GITHUB_OUTPUT"')
ret = os.system(f'echo "{key}={value}" >> "$GITHUB_OUTPUT"')
if ret != 0:
logging.error(f"unable to set output for '{key}' - exit code {ret}")

return ret


def download_install_sbomgen(sbomgen_version: str, install_dst: str) -> bool:
Expand Down Expand Up @@ -163,7 +167,6 @@ def invoke_inspector_scan(src_sbom, dst_scan):
logging.error(e)
return 1

logging.info("setting Inspector scan results as GitHub output")
if set_github_output("inspector_scan_results", encoded_scan) != 0:
logging.error("unable to set GitHub output for 'inspector_scan_results'")

Expand Down

0 comments on commit 595515e

Please sign in to comment.