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 aa5b7d9 commit dc5cddc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/amazon-inspector-image-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
default: 'Dockerfile'
docker-image-name:
required: false
type: string
4: string
default: ${{ github.repository }}
jobs:
build:
Expand All @@ -28,23 +28,19 @@ 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: 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"
- name: Scan Local Image
run: "$inspector_sbomgen_path"/inspector-sbomgen container --image localhost:5000/${{ inputs.docker-image-name }}:latest -o "$inspector_sbomgen_output_path"

- name: Show results
run: cat "$inspector_sbomgen_output_path"

0 comments on commit dc5cddc

Please sign in to comment.