Skip to content

Commit

Permalink
validate
Browse files Browse the repository at this point in the history
  • Loading branch information
plutov committed May 28, 2024
1 parent 6cbc3fd commit 7d107c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-scout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
context: ./25-docker-scout
push: false
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ github.event.repository.name }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand All @@ -30,7 +30,7 @@ jobs:
uses: docker/scout-action@v1
with:
command: cves
image: ${{ steps.meta.outputs.tags }}
image: ${{ github.event.repository.name }}
ignore-unchanged: true
only-severities: critical,high
write-comment: true
Expand Down
4 changes: 3 additions & 1 deletion 25-docker-scout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,6 @@ While manual scanning is valuable, integrating vulnerability checks into your CI

Docker Scout has a [GitHub Action](https://github.com/docker/scout-action) to run the Docker Scout CLI as part of your workflows.

Here is an example workflow (`.github/workflows/docker-scout.yaml`) which runs Docker Scout on every push and reports only Critical and High vulnerabilities as a comment to a PR. This actions requires authentication to Docker Hub, so we should add `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN` to secrets.
Here is an example workflow (`.github/workflows/docker-scout.yaml`) which runs Docker Scout on every push and reports only Critical and High vulnerabilities as a comment to a PR. This actions requires authentication to Docker Hub, so we should add `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN` to secrets.

Incorporating these practices into your workflow empowers developersto streamline vulnerability management and maintain a more secure containerized ecosystem.

0 comments on commit 7d107c8

Please sign in to comment.