Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Saltanofff authored Nov 16, 2024
1 parent 470b2d0 commit 6294485
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,26 @@ jobs:
- name: Build Docker Image
run: docker build -f Dockerfile -t mytestapp:latest .

# - name: Docker Scout Scan
# run: |
# curl -fsSL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh -o install-scout.sh
# sh install-scout.sh
# echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
# docker scout quickview
# docker scout cves

- name: Docker Scout Scan
run: |
curl -fsSL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh -o install-scout.sh
sh install-scout.sh
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
echo ${{ secrets.DOCKERHUB_PASSWORD }} ${{ secrets.DOCKERHUB_USERNAME }}
docker scout quickview
docker scout cves
uses: docker/[email protected]
with:
dockerhub-user: ${{ secrets.DOCKERHUB_PASSWORD }}
dockerhub-password: ${{ secrets.DOCKERHUB_USERNAME }}
command: quickview,cves
only-severities: critical,high
sarif-file: scout-report.sarif

- name: Upload Artifact
uses: actions/upload-artifact@v3
if: always()
with:
name: docker-scout-findings
path: scout-report.sarif

0 comments on commit 6294485

Please sign in to comment.