From a5eb6b557dabecea6c8fbd2aa680f2d172a404c3 Mon Sep 17 00:00:00 2001 From: Rajendra Reddy Date: Wed, 18 Feb 2026 19:21:37 +0000 Subject: [PATCH] Update .gitea/workflows/mobsf.yml --- .gitea/workflows/mobsf.yml | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/.gitea/workflows/mobsf.yml b/.gitea/workflows/mobsf.yml index 229c0da..cd33b28 100644 --- a/.gitea/workflows/mobsf.yml +++ b/.gitea/workflows/mobsf.yml @@ -5,43 +5,23 @@ jobs: mobsf-analysis: runs-on: ubuntu-latest steps: - # 1. Checkout code into the runner's workspace - name: Checkout Code uses: https://github.com/actions/checkout@v4 - # 2. Prepare the environment - # We create the report file first so the upload step doesn't crash if scan is clean - name: Prepare Report File run: | - echo "

MobSF Scan Results

No vulnerabilities were detected in this run.

" > report.html + echo "

Scan Results

No issues found.

" > report.html chmod 777 report.html - - name: Debug Workspace Files - run: | - echo "Files in /workspace:" - ls -R - # 3. Run MobSF Scan using Docker - # We mount the Gitea Workspace volume into the MobSF container -# - name: Run MobSF Scan -# run: | -# docker run --rm \ -# -v "${{ github.workspace }}:/src" \ -# opensecurity/mobsfscan:latest \ -# /src --html --output /src/report.html || true -## ... previous steps ... - - name: Run MobSF Scan run: | - # 1. We added --type directory to stop it from ignoring "non-android" files - # 2. We added -v for verbose output so we can see what it's doing + # We scan the root ('.') and use verbose (-v) to see what is happening + # We use --no-fail so the step doesn't crash Gitea before we upload the report docker run --rm \ -v "${{ github.workspace }}:/src" \ opensecurity/mobsfscan:latest \ - /src --type directory --html --output /src/report.html || true - - # ... upload steps ... + -v --no-fail --html -o /src/report.html /src - # 4. Upload using the Gitea-compatible v3 action - name: Upload Report to Gitea uses: https://gitea.com/actions/upload-artifact@v3 with: