Skip to content

Commit 5438265

Browse files
committed
add scanning
1 parent 1cc0905 commit 5438265

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/ndc-nodejs-lambda-connector.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,31 @@ jobs:
131131
labels: ${{ steps.docker-metadata.outputs.labels }}
132132
push: true
133133

134+
security-scan:
135+
name: Security vulnerability scan
136+
runs-on: ubuntu-latest
137+
steps:
138+
- uses: actions/checkout@v4
139+
140+
- name: Run Trivy vulnerability scanner
141+
uses: aquasecurity/trivy-action@0.32.0
142+
with:
143+
scan-type: fs
144+
format: json
145+
output: trivy-results.json
146+
severity: CRITICAL,HIGH
147+
exit-code: 1
148+
149+
- name: Upload to Security Agent
150+
if: always()
151+
uses: hasura/security-agent-tools/upload-file@main
152+
with:
153+
file_path: trivy-results.json
154+
security_agent_api_key: ${{ secrets.SECURITY_AGENT_API_KEY }}
155+
tags: |
156+
service=ndc-nodejs-lambda
157+
scanner=trivy
158+
134159
release-connector:
135160
name: Release connector
136161
defaults:

0 commit comments

Comments
 (0)