Skip to content

Commit

Permalink
container tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Long committed Feb 19, 2024
1 parent 6e719c3 commit 049a49b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ job=$(echo $GITHUB_RUN_ID)
out_file="$sbom_dir/$job-scan-$dtg.json"
echo "Out file $out_file"

$sbomgen $artifact_type $artifact_path_arg $artifact_path $prog --scan-sbom -o sbom.json
$sbomgen $artifact_type $artifact_path_arg $artifact_path $prog --scan-sbom -o $out_file

# move the logs and give needed permissions for the uploader
mkdir logs
Expand All @@ -46,7 +46,7 @@ chmod -R o+r logs
chmod -R o+r $sbom_dir
ls -lsah logs

# test AWS CLI
# aws inspector-scan scan-sbom --sbom file://sbom.json > $out_file 2>&1
aws inspector-scan scan-sbom --sbom file://sbom.json
cp sbom.json $out_file
# scan SBOM with Inspector
cp $out_file ./sbom.json
aws inspector-scan scan-sbom --sbom file://sbom.json > $out_file 2>&1
cat $out_file

0 comments on commit 049a49b

Please sign in to comment.