Commit f122e77c authored by Yassine BAZIZ's avatar Yassine BAZIZ Committed by Pierre Smeyers
Browse files

fix(mobsf-pkg-local): correct variable declaration and export for MobSF API key and server URL

parent d22a2b57
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -442,8 +442,9 @@ mobsf-pkg-local:
      alias: mobsf
      variables:
        MOBSF_API_KEY: "apiKey"
    MOBSF_SERVER_URL: "http://mobsf:8000"
  script:
    - export MOBSF_API_KEY="apiKey"
    - export MOBSF_SERVER_URL="http://mobsf:8000"
    - assert_defined "${MOBSF_APP_FILE}" 'Missing required MobSF application file'
    - wait_for_service mobsf 8000
    - mobsf_scan ${MOBSF_APP_FILE}
@@ -456,6 +457,7 @@ mobsf-pkg-local:
      when: never
    - !reference [.test-policy, rules]

# scan source code folder with mobsfscan
mobsf-code:
  extends: .mobsf-base
  stage: package-test