Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nanuchi authored Nov 13, 2023
1 parent 4368f67 commit ca2e142
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,24 @@ jobs:
- name: Build Docker Image
run: docker build -f Dockerfile -t myapp: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
- 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.REPO_PWD }} | docker login -u ${{ secrets.REPO_USER }} --password-stdin
echo ${{ secrets.REPO_PWD }} | docker login -u ${{ secrets.REPO_USER }} --password-stdin
# docker scout quickview
# docker scout cves
docker scout quickview
docker scout cves
- name: Docker Scout Scan
uses: docker/[email protected]
with:
dockerhub-user: ${{ secrets.REPO_USER }}
dockerhub-password: ${{ secrets.REPO_PWD }}
command: quickview,cves
only-severities: critical,high
sarif-file: scout-report.sarif
# - name: Docker Scout Scan
# uses: docker/[email protected]
# with:
# dockerhub-user: ${{ secrets.REPO_USER }}
# dockerhub-password: ${{ secrets.REPO_PWD }}
# command: quickview,cves
# only-severities: critical,high
# sarif-file: scout-report.sarif

- name: Upload Artifact
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit ca2e142

Please sign in to comment.