Nevercode Integration

Nevercode Integration Instructions

The following tutorial will guide you through the process of integrating Nevercode with Lab Automated.

Integration Step-By-Step

STEP 1 Get an API token from Lab Automated

API tokens can be found by clicking on the Profile button, then Account. Select “Access Tokens” and create a token.

STEP 2 You will need a shell script to call the Lab Automated API. We named our lab_push.sh but any .sh filename will do.

Note: <app file>, <platform>, and <app.package> will all change based on your specific app.


#!/bin/sh

echo "Pushing to NowSecure Lab Automated and triggering assistant "

cd $NEVERCODE_BUILD_OUTPUT_DIR

- curl -X POST --data-binary @app-debug.apk -H "Authorization:Bearer $LAB_TOKEN" https://lab-api.nowsecure.com/build/

echo "Error if any is:"

echo $?

STEP 3 In your NextCode project navigate to Settings via the wrench on the top right and then to Environment.

STEP 4 Under Environment Variables, enter LAB_KEY=<your NowSecure Lab Automated Access Token>

At the bottom, under Environment files, add your shell script file, naming it NC_POST_BUILD_SCRIPT

Now every build will automatically upload the new binary and trigger an assessment.

Integration Complete

Nevercode integration is now complete for your account with Lab Automated. If you need assistance, feel free to contact support.