Sequence the jobs correctly.

This commit is contained in:
2024-08-28 10:09:12 +12:00
parent c66b1f3463
commit 1a3439e8d0

View File

@ -34,6 +34,7 @@ jobs:
scan-image: scan-image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build-and-push-image
permissions: permissions:
id-token: write id-token: write
steps: steps:
@ -42,12 +43,14 @@ jobs:
uses: stackrox/central-login@v1 uses: stackrox/central-login@v1
with: with:
endpoint: ${{ env.CENTRAL_ENDPOINT }} endpoint: ${{ env.CENTRAL_ENDPOINT }}
skip-tls-verify: true
- name: Install roxctl - name: Install roxctl
uses: stackrox/roxctl-installer-action@v1 uses: stackrox/roxctl-installer-action@v1
with: with:
central-endpoint: ${{ env.CENTRAL_ENDPOINT }} central-endpoint: ${{ env.CENTRAL_ENDPOINT }}
central-token: ${{ env.ROX_API_TOKEN }} central-token: ${{ env.ROX_API_TOKEN }}
skip-tls-verify: true
- name: Scan image with roxctl - name: Scan image with roxctl
shell: bash shell: bash