1111jobs :
1212 build :
1313 name : Build
14- runs-on : ubuntu-latest
14+ runs-on : ubuntu-24.04
1515 steps :
1616 - name : Checkout code
1717@@ -30,13 +30,13 @@ jobs:
3030 export DOCKER_DEFAULT_PLATFORM='linux/arm64'
3131 ./e2e-tests/build
3232
33- - name : Run Snyk vulnerability scanner image (linux/arm64)
34- uses : snyk/actions/docker@master
35- env :
36- SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
37- with :
38- image : ' ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64'
39- args : --platform=linux/arm64 --severity-threshold=high --exclude-base-image-vulns --file=./build/Dockerfile -fail-on=upgradable
33+ # - name: Run Snyk vulnerability scanner image (linux/arm64)
34+ # uses: snyk/actions/docker@master
35+ # env:
36+ # SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
37+ # with:
38+ # image: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64'
39+ # args: --platform=linux/arm64 --severity-threshold=high --exclude-base-image-vulns --file=./build/Dockerfile -fail-on=upgradable
4040
4141 - name : Build an image from Dockerfile (linux/amd64)
4242 run : |
@@ -45,12 +45,15 @@ jobs:
4545 export DOCKER_SQUASH=0
4646 export DOCKER_DEFAULT_PLATFORM='linux/amd64'
4747 ./e2e-tests/build
48-
48+ - name : Install Snyk
49+ uses : snyk/actions/setup@master
4950 - name : Run Snyk vulnerability scanner image (linux/amd64)
50- uses : snyk/actions/docker@master
51+ run : snyk ontainer test --platform=linux/amd64 --severity-threshold=high --fail-on=upgradable --exclude-base-image-vulns ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-amd64 --file=./build/Dockerfile
5152 env :
52- SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
53- with :
54- image : ' ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-amd64'
55- args : --platform=linux/amd64 --severity-threshold=high --exclude-base-image-vulns --file=./build/Dockerfile -fail-on=upgradable
53+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN_NEW }}
54+ # with:
55+ # command: 'container test'
56+ # image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-amd64
57+ # args: --platform=linux/amd64 --severity-threshold=high --exclude-base-image-vulns --file=./build/Dockerfile -fail-on=upgradable
58+
5659
0 commit comments