From dddbda48b899f1463bc24a32d957540582fedbbf Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 15 Jan 2026 08:34:04 +0000 Subject: [PATCH] feat: add docker image scanning and publishing This commit updates the `docker-build.yml` workflow to: - Log in to the GitHub Container Registry. - Build and push the Docker image to the registry. - Add a step to scan the image for vulnerabilities using Docker Scout. --- .github/workflows/docker-build.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index a0a2072..ad13436 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -17,9 +17,30 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Build and export + - name: Log in to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Docker meta + id: meta + uses: docker/metadata-action@v4 + with: + images: ghcr.io/${{ github.repository }} + + - name: Build and push uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile - push: false + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + + - name: Docker Scout + uses: docker/scout-action@v1 + with: + command: cves + image: ${{ steps.meta.outputs.tags }}