Skip to content

Tcohn1/gitlabci

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NowSecure GitLab CI

This is the source repository to build the docker image available at https://hub.docker.com/repository/docker/nowsecure/gitlab-ci to be used within GitLab CI.

This image gives you the ability to perform automatic mobile app security testing for Android and iOS mobile apps through the NowSecure test engine.

Summary

Purpose-built for mobile app teams, NowSecure provides fully automated, mobile appsec testing coverage (static+dynamic+behavioral tests) optimized for the dev pipeline. Because NowSecure tests the mobile app binary post-build from CircleCI, it can test software developed in any language and provides complete results including newly developed code, 3rd party code, and compiler/operating system dependencies. With near zero false positives, NowSecure pinpoints real issues in minutes, with developer fix details, and routes tickets automatically into ticketing systems, such as Jira. NowSecure is frequently used to perform security testing in parallel with functional testing in the dev cycle. Requires a license for and connection to the NowSecure software. https://www.nowsecure.com

Sample Usage

You should pass auto_token in via CI/CI variable in GitLab Settings instead in the Job Definition for security reasons.

nowsecure:
  stage: test
  image: nowsecure/gitlabci:v1.1.0
  variables:
    AUTO_GROUP: 00000000-0000-0000-0000-000000000000
    AUTO_TOKEN: xxx
    BINARY_FILE: /path/to/artifact/apk/or/ipa/file
  script:
    - nowsecure.sh

Note that you will generate mobile binary using gradle, Makefile, Fastlane or other tools instead of copying file but it shows how binary file will be created and then passed to the Auto CircleCI Orb for security analysis.

Getting Started

Access token

Generate token as described on https://docs.nowsecure.com/auto/integration-services/jenkins-integration. This token will be specified by environment variable AUTO_TOKEN.

Environment variables

  • AUTO_TOKEN=default_token - Specifies auto token from your account
  • AUTO_GROUP=default_group - Specifies group for your account
  • BINARY_FILE=default_binary - Path to Android apk or IOS ipa - this file must be mounted via volume for the access

Optional

Following are optional parameters that can be set from environment variables:

  • MAX_WAIT=nn (default 30) - Default max wait in minutes for the mobile analysis
  • MAX_SCORE=nn (default 50) - Minimum score the app must have otherwise it would fail
  • ARTIFACTS_DIR=/home/gradle/artifacts - Specifies artifacts directory where json files are stored

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 51.3%
  • Shell 48.7%