Skip to content

Commit

Permalink
add aws cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Long committed Feb 19, 2024
1 parent 0dacc89 commit da9d877
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# we use alpine and not distroless because we need wget, unzip, etc.
FROM alpine:latest

RUN apk add aws-cli

# download and unzip inspector-sbomgen
RUN wget https://amazon-inspector-sbomgen.s3.amazonaws.com/latest/linux/amd64/inspector-sbomgen.zip
RUN unzip inspector-sbomgen.zip
Expand Down
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ chmod -R o+r logs
chmod -R o+r $sbom_dir
ls -lsah logs

# test AWS CLI
cp $sbom_dir/*.json ./sbom.json
ls sbom.json
aws inspector-scan scan-sbom --sbom file://sbom.json

0 comments on commit da9d877

Please sign in to comment.