Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions .github/workflows/docker-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,3 @@ jobs:
docker stop ${CONTAINER_ID}
docker rm ${CONTAINER_ID}
fi

security-scan:
name: Security Scan
runs-on: self-hosted
steps:
- uses: actions/checkout@v4

- name: Build Docker image
run: |
.github/scripts/dnd-sbt Docker/publishLocal
IMAGE_NAME=$(.github/scripts/dnd-sbt printDockerImageName | grep DOCKER_IMAGE | cut -d= -f2)
echo "IMAGE=${IMAGE_NAME}" >> $GITHUB_ENV

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ env.IMAGE }}
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
18 changes: 18 additions & 0 deletions .github/workflows/security-scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Security Scan
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
security-scan:
name: Security Scan
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: raw-labs/das-sec-scan@main
with:
github-token: ${{ github.token }}