ci: rework workflow for Gitea Actions (M0.2) #2
@@ -47,12 +47,13 @@ jobs:
|
|||||||
/tmp/gitleaks detect --source . --no-banner --redact --verbose --exit-code 1
|
/tmp/gitleaks detect --source . --no-banner --redact --verbose --exit-code 1
|
||||||
|
|
||||||
- name: trivy fs scan
|
- name: trivy fs scan
|
||||||
uses: aquasecurity/trivy-action@master
|
shell: bash
|
||||||
with:
|
run: |
|
||||||
scan-type: fs
|
set -euo pipefail
|
||||||
severity: HIGH,CRITICAL
|
TRIVY_VERSION=0.50.0
|
||||||
exit-code: 1
|
curl -fsSL "https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" \
|
||||||
ignore-unfixed: true
|
| tar -xz -C /tmp trivy
|
||||||
|
/tmp/trivy fs --severity HIGH,CRITICAL --exit-code 1 --no-progress --skip-dirs node_modules,target,dist .
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|||||||
Reference in New Issue
Block a user