Commit 538cc615 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'fix/mosbf-pkg-local-not-run' into 'master'

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

Closes #14

See merge request to-be-continuous/mobsf!55
parents d22a2b57 f122e77c
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