docs(gha): indent the step setting keys to the appropriate level

This commit is contained in:
almaceleste 2024-04-15 03:57:38 +03:00
parent 4da642f0da
commit cdb1ca31b9
1 changed files with 19 additions and 19 deletions

View File

@ -124,26 +124,26 @@ With this setup out of the way, you can add the following steps to run the
image comparison: image comparison:
```yaml ```yaml
# You can skip this step if Docker Hub is your registry # You can skip this step if Docker Hub is your registry
# and you already authenticated before # and you already authenticated before
- name: Authenticate to Docker - name: Authenticate to Docker
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
username: ${{ secrets.DOCKER_USER }} username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PAT }} password: ${{ secrets.DOCKER_PAT }}
# Compare the image built in the pull request with the one in production # Compare the image built in the pull request with the one in production
- name: Docker Scout - name: Docker Scout
id: docker-scout id: docker-scout
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
uses: docker/scout-action@v1 uses: docker/scout-action@v1
with: with:
command: compare command: compare
image: ${{ steps.meta.outputs.tags }} image: ${{ steps.meta.outputs.tags }}
to-env: production to-env: production
ignore-unchanged: true ignore-unchanged: true
only-severities: critical,high only-severities: critical,high
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
``` ```
The compare command analyzes the image and evaluates policy compliance, and The compare command analyzes the image and evaluates policy compliance, and