All checks were successful
MobSF Security Scan / mobsf-analysis (push) Successful in 12s
29 lines
933 B
YAML
29 lines
933 B
YAML
name: MobSF Security Scan
|
|
on: [push]
|
|
|
|
jobs:
|
|
mobsf-analysis:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: https://github.com/actions/checkout@v4
|
|
|
|
- name: Prepare Report File
|
|
run: |
|
|
echo "<html><body><h1>Scan Results</h1><p>No issues found.</p></body></html>" > report.html
|
|
chmod 777 report.html
|
|
|
|
- name: Run MobSF Scan
|
|
run: |
|
|
# 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 \
|
|
-v --no-fail --html -o /src/report.html /src
|
|
|
|
- name: Upload Report to Gitea
|
|
uses: https://gitea.com/actions/upload-artifact@v3
|
|
with:
|
|
name: MobSF-Security-Report
|
|
path: report.html |