diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3829eac..87e5b7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,7 @@ jobs: template: '@/contrib/sarif.tpl' output: trivy-results.sarif - name: Upload Trivy scan results to GitHub Security tab - uses: github/codeql-action/upload-sarif@v1 + uses: github/codeql-action/upload-sarif@v2 with: sarif_file: trivy-results.sarif @@ -53,7 +53,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Cache Docker layers uses: actions/cache@v3.0.2 with: @@ -63,7 +63,7 @@ jobs: ${{ runner.os }}-buildx- - name: Docker meta id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: docker.io/dazoakley/bandiera tags: | @@ -71,7 +71,7 @@ jobs: type=semver,pattern={{major}}.{{minor}} type=sha - name: Build and export to Docker - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: . load: true @@ -95,13 +95,13 @@ jobs: severity: CRITICAL,HIGH skip-dirs: /usr/local/lib/ruby/gems - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v2 if: startsWith(github.ref, 'refs/tags/') with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Push to dockerhub - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 if: startsWith(github.ref, 'refs/tags/') with: context: .