File tree Expand file tree Collapse file tree 2 files changed +18
-22
lines changed Expand file tree Collapse file tree 2 files changed +18
-22
lines changed Original file line number Diff line number Diff line change 46
46
docker stop ${CONTAINER_ID}
47
47
docker rm ${CONTAINER_ID}
48
48
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'
Original file line number Diff line number Diff line change
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 }}
You can’t perform that action at this time.
0 commit comments