diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 2d0e07e..db4612a 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -26,7 +26,7 @@ jobs: - name: save docker image for cache run: mkdir -p image/ && docker save -o image/image.tar image:${{ steps.vars.outputs.alpine_version }} - name: cache docker image - uses: actions/cache@v3.3.0 + uses: actions/cache@v4.0.2 with: path: image/ key: ${{ runner.os }}-docker-${{ github.sha }} @@ -41,14 +41,14 @@ jobs: id: vars run: echo ::set-output name=alpine_version::$(grep '^FROM alpine' Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2) - name: load cached docker image - uses: actions/cache@v3.3.0 + uses: actions/cache@v4.0.2 with: path: image/ key: ${{ runner.os }}-docker-${{ github.sha }} - name: load cached docker container run: docker load -i image/image.tar - name: cached scan db - uses: actions/cache@v3.3.0 + uses: actions/cache@v4.0.2 with: path: vulndb/ key: trivy-vulndb