trviy file
RN APK Build / build (push) Has been cancelled

This commit is contained in:
NishantRajputRN
2026-05-13 10:13:22 +05:30
parent d815cdb373
commit 22bca573ce
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -42,12 +42,17 @@ jobs:
"${HOME}/bin/trivy" --version "${HOME}/bin/trivy" --version
# Use "${HOME}/bin/trivy" — act/Gitea may not prepend GITHUB_PATH before the next step. # Use "${HOME}/bin/trivy" — act/Gitea may not prepend GITHUB_PATH before the next step.
# Gitea only orchestrates the job; checkout + report.json live on the runner machine (this server), not on the Gitea host.
- name: Trivy filesystem scan - name: Trivy filesystem scan
run: | run: |
"${HOME}/bin/trivy" fs -f json -o report.json \ "${HOME}/bin/trivy" fs -f json -o report.json \
--skip-dirs node_modules,android/.gradle,android/build,ios/Pods,ios/build,.git \ --skip-dirs node_modules,android/.gradle,android/build,ios/Pods,ios/build,.git \
--exit-code 0 \ --exit-code 0 \
. .
report_path="${GITHUB_WORKSPACE:-$(pwd)}/report.json"
echo "Runner host: $(hostname)"
echo "report.json (on this runner, under job workspace): ${report_path}"
ls -la report.json
# - name: Upload Trivy report # - name: Upload Trivy report
# uses: actions/upload-artifact@v3 # uses: actions/upload-artifact@v3
+2 -1
View File
@@ -11,4 +11,5 @@ console.log("test9")
console.log("test10") console.log("test10")
console.log("test11") console.log("test11")
console.log("test12") console.log("test12")
console.log("test13") console.log("test13")
console.log("test14")