-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,24 +45,22 @@ 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 | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
|