Skip to content

Commit

Permalink
investigating bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Long committed Mar 8, 2024
1 parent 119782d commit 976dada
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint/entrypoint/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def compress_encode_file(file):


def set_github_output(key, value):
logging.info("trying to set github output")
print(key)
print(value)
if os.getenv('GITHUB_ACTIONS') == 'true':
return os.system(f'echo "{key}={value}" >> "$GITHUB_OUTPUT"')
else:
Expand Down
18 changes: 18 additions & 0 deletions scripts/local_demo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

# execute this script from the project root directory

rm -rf /tmp/sbom.json
rm -rf /tmp/scan.json

python3 entrypoint/main.py --artifact-type container \
--artifact-path alpine:latest \
--out-sbom /tmp/sbom.json \
--out-scan /tmp/scan.json \
--sbomgen-version latest \
--thresholds \
--critical 0 \
--high 0 \
--medium 0 \
--low 0 \
--other 0

0 comments on commit 976dada

Please sign in to comment.