mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-06-28 01:06:58 +00:00
Separate stages
This commit is contained in:
parent
249ae584c3
commit
15c12a81f1
6
.github/workflows/docker-build.yml
vendored
6
.github/workflows/docker-build.yml
vendored
@ -64,11 +64,15 @@ jobs:
|
|||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
|
|
||||||
|
docker_scan:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: docker_build
|
||||||
|
steps:
|
||||||
- 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: ${{ steps.meta.outputs.tags }}
|
image: ${{ needs.docker_build.outputs.image-tags }}
|
||||||
only-severities: critical,high
|
only-severities: critical,high
|
||||||
only-fixed: true
|
only-fixed: true
|
||||||
write-comment: true
|
write-comment: true
|
||||||
|
37
.github/workflows/docker-scan.yml
vendored
37
.github/workflows/docker-scan.yml
vendored
@ -1,37 +0,0 @@
|
|||||||
name: Docker Scan
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
trigger-scan:
|
|
||||||
description: 'Trigger a manual scan'
|
|
||||||
required: true
|
|
||||||
default: 'true'
|
|
||||||
|
|
||||||
env:
|
|
||||||
DOCKER_IMAGE: donaldzou/wgdashboard
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
docker_scan:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: docker.io
|
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Docker Scout CVEs
|
|
||||||
uses: docker/scout-action@v1
|
|
||||||
with:
|
|
||||||
command: cves
|
|
||||||
image: ${{ env.DOCKER_IMAGE }}:nightly
|
|
||||||
only-severities: critical,high
|
|
||||||
only-fixed: true
|
|
||||||
write-comment: true
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
exit-code: true
|
|
Loading…
x
Reference in New Issue
Block a user