File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments