From dc5cddc8273596a6da04e2be7feb4dc93f894280 Mon Sep 17 00:00:00 2001 From: mlewk Date: Tue, 27 Feb 2024 11:28:53 +0100 Subject: [PATCH] Fix path issue --- .github/workflows/amazon-inspector-image-scan.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/amazon-inspector-image-scan.yml b/.github/workflows/amazon-inspector-image-scan.yml index a33bc91..6dd263d 100644 --- a/.github/workflows/amazon-inspector-image-scan.yml +++ b/.github/workflows/amazon-inspector-image-scan.yml @@ -12,7 +12,7 @@ on: default: 'Dockerfile' docker-image-name: required: false - type: string + 4: string default: ${{ github.repository }} jobs: build: @@ -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"