The following tutorial will guide you through the process of integrating Nevercode with NowSecure Auto.
STEP 1 Get an API token from NowSecure Auto
API tokens can be created by navigating to the Profile & Preferences page. Enter a Token Name in the Create Access Token field and click the Create button.
STEP 2 You will need a shell script to call the NowSecure Auto API. We named our
lab_push.sh but any .sh filename will do.
<app.package> will all change based on your specific app.
#!/bin/sh echo "Pushing to NowSecure Auto 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 NowSecure Auto Access Token>
At the bottom, under Environment files, add your shell script file, naming it
Now every build will automatically upload the new binary and trigger an assessment.
Nevercode integration is now complete for your account with NowSecure Auto. If you need assistance, feel free to contact support.