Skip to content

Commit

Permalink
Fix path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewk committed Feb 27, 2024
1 parent 102dae7 commit 929e8cf
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/amazon-inspector-image-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,23 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build and push to local registry
uses: docker/build-push-action@v5
with:
context: ${{ inputs.docker-context }}
push: true
tags: localhost:5000/${{ inputs.docker-image-name }}:latest
- name: Check cURL version
run: curl -V

- name: Setup Inspector Sbomgen
run: >
mkdir -p $inspector_sbomgen_path
&& curl "https://amazon-inspector-sbomgen.s3.amazonaws.com/latest/linux/amd64/inspector-sbomgen.zip" -O
&& unzip -qq -j inspector-sbomgen.zip -d $inspector_sbomgen_path
&& chmod +x "$inspector_sbomgen_path/inspector-sbomgen"
&& echo "$inspector_sbomgen_path" >> $GITHUB_PATH
- name: Scan Local Image
run: inspector-sbomgen container --image localhost:5000/${{ inputs.docker-image-name }}:latest -o "$inspector_sbomgen_output_path"
run: "$inspector_sbomgen_path/inspector-sbomgen" container --image localhost:5000/${{ inputs.docker-image-name }}:latest -o "$inspector_sbomgen_output_path"

- name: Show results
if: always()
run: cat "$inspector_sbomgen_output_path"

0 comments on commit 929e8cf

Please sign in to comment.