Skip to content

Commit ca45234

Browse files
authored
feat: scheduled sec scan for final artifact (#5)
- scheduled security scan using https://github.com/raw-labs/das-sec-scan - cleanup docker ci step about sec scan
1 parent 250c9d9 commit ca45234

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

.github/workflows/docker-ci.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,3 @@ jobs:
4646
docker stop ${CONTAINER_ID}
4747
docker rm ${CONTAINER_ID}
4848
fi
49-
50-
security-scan:
51-
name: Security Scan
52-
runs-on: self-hosted
53-
steps:
54-
- uses: actions/checkout@v4
55-
56-
- name: Build Docker image
57-
run: |
58-
.github/scripts/dnd-sbt Docker/publishLocal
59-
IMAGE_NAME=$(.github/scripts/dnd-sbt printDockerImageName | grep DOCKER_IMAGE | cut -d= -f2)
60-
echo "IMAGE=${IMAGE_NAME}" >> $GITHUB_ENV
61-
62-
- name: Run Trivy vulnerability scanner
63-
uses: aquasecurity/trivy-action@master
64-
with:
65-
image-ref: ${{ env.IMAGE }}
66-
format: 'table'
67-
exit-code: '1'
68-
ignore-unfixed: true
69-
vuln-type: 'os,library'
70-
severity: 'CRITICAL,HIGH'
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Security Scan
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
workflow_dispatch:
6+
7+
jobs:
8+
security-scan:
9+
name: Security Scan
10+
runs-on: self-hosted
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- uses: raw-labs/das-sec-scan@main
17+
with:
18+
github-token: ${{ github.token }}

0 commit comments

Comments
 (0)