Hello GitLab Community,
I’m currently using the GitLab SAST template for a MobSF Android scan in my CI pipeline. However, I’m encountering an issue where the generated reports are empty, with no vulnerabilities listed.
Here’s the JSON report that’s being generated:
{
"version": "15.0.7",
"vulnerabilities": [],
"dependency_files": [],
"scan": {
"analyzer": {
"id": "mobsf",
"name": "MobSF",
"url": "https://gitlab.com/gitlab-org/security-products/analyzers/mobsf",
"vendor": { "name": "GitLab" },
"version": "4.6.2"
},
"scanner": {
"id": "mobsf",
"name": "MobSF",
"url": "https://github.com/MobSF/Mobile-Security-Framework-MobSF",
"vendor": { "name": "GitLab" },
"version": "3.7.6-gitlab.1"
},
"type": "sast",
"start_time": "2024-02-22T12:29:35",
"end_time": "2024-02-22T12:29:38",
"status": "success"
}
}
And here’s my .gitlab-ci.yml
:
stages:
- build
- test
build-job:
stage: build
image: mobiledevops/android-sdk-image:34.0.0-jdk17
before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- yes | sdkmanager --sdk_root=${ANDROID_HOME} --licenses || true
script: "./gradlew assemble"
include:
- template: Jobs/SAST.gitlab-ci.yml
variables:
SAST_EXPERIMENTAL_FEATURES: "true"
I’ve been trying to find a solution to this issue but haven’t had any luck so far. Any help or guidance would be greatly appreciated.
Here’s the link to the original project - GitHub - Sudhindra3000/android-dev-challenge-weather-app: Weather App UI made for Android Developer Challenge Week 4
Thank you!