mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-02 23:36:17 +00:00
chore: fix docker scan module
This commit is contained in:
14
.github/workflows/docker.yml
vendored
14
.github/workflows/docker.yml
vendored
@@ -79,18 +79,18 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: docker_build
|
needs: docker_build
|
||||||
steps:
|
steps:
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.DOCKERHUB_PREFIX }}
|
registry: ${{ env.GITHUB_CONTAINER_PREFIX }}
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Docker Scout CVEs
|
- name: Docker Scout CVEs
|
||||||
uses: docker/scout-action@v1
|
uses: docker/scout-action@v1
|
||||||
with:
|
with:
|
||||||
command: cves
|
command: cves
|
||||||
image: ${{ env.GITHUB_CONTAINER_PREFIX }}/${{ env.DOCKER_IMAGE }}:main
|
image: ${{ env.GITHUB_CONTAINER_PREFIX }}/${{ github.repository_owner }}/${{ env.DOCKER_IMAGE }}:main
|
||||||
only-severities: critical,high
|
only-severities: critical,high
|
||||||
only-fixed: true
|
only-fixed: true
|
||||||
write-comment: true
|
write-comment: true
|
||||||
@@ -102,8 +102,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
command: compare
|
command: compare
|
||||||
# Set to Github for maximum compat
|
# Set to Github for maximum compat
|
||||||
image: ${{ env.GITHUB_CONTAINER_PREFIX }}/${{ env.DOCKER_IMAGE }}:main
|
image: ${{ env.GITHUB_CONTAINER_PREFIX }}/${{ github.repository_owner }}/${{ env.DOCKER_IMAGE }}:main
|
||||||
to: ${{ env.GITHUB_CONTAINER_PREFIX }}/${{ env.DOCKER_IMAGE }}:latest
|
to: ${{ env.GITHUB_CONTAINER_PREFIX }}/${{ github.repository_owner }}/${{ env.DOCKER_IMAGE }}:latest
|
||||||
only-severities: critical,high
|
only-severities: critical,high
|
||||||
ignore-unchanged: true
|
ignore-unchanged: true
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Reference in New Issue
Block a user