From cdb1ca31b997492d7d734321839302fd059b3db5 Mon Sep 17 00:00:00 2001 From: almaceleste Date: Mon, 15 Apr 2024 03:57:38 +0300 Subject: [PATCH] docs(gha): indent the step setting keys to the appropriate level --- content/scout/integrations/ci/gha.md | 38 ++++++++++++++-------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/content/scout/integrations/ci/gha.md b/content/scout/integrations/ci/gha.md index 1caaee0f3b..b1878454a8 100644 --- a/content/scout/integrations/ci/gha.md +++ b/content/scout/integrations/ci/gha.md @@ -124,26 +124,26 @@ With this setup out of the way, you can add the following steps to run the image comparison: ```yaml -# You can skip this step if Docker Hub is your registry -# and you already authenticated before -- name: Authenticate to Docker - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USER }} - password: ${{ secrets.DOCKER_PAT }} + # You can skip this step if Docker Hub is your registry + # and you already authenticated before + - name: Authenticate to Docker + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_PAT }} -# Compare the image built in the pull request with the one in production -- name: Docker Scout - id: docker-scout - if: ${{ github.event_name == 'pull_request' }} - uses: docker/scout-action@v1 - with: - command: compare - image: ${{ steps.meta.outputs.tags }} - to-env: production - ignore-unchanged: true - only-severities: critical,high - github-token: ${{ secrets.GITHUB_TOKEN }} + # Compare the image built in the pull request with the one in production + - name: Docker Scout + id: docker-scout + if: ${{ github.event_name == 'pull_request' }} + uses: docker/scout-action@v1 + with: + command: compare + image: ${{ steps.meta.outputs.tags }} + to-env: production + ignore-unchanged: true + only-severities: critical,high + github-token: ${{ secrets.GITHUB_TOKEN }} ``` The compare command analyzes the image and evaluates policy compliance, and