-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
67 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,14 @@ Following are parameters needed for the job | |
- auto_url: optional parameter for nowsecure auto API URL with default value of https://lab-api.nowsecure.com | ||
- auto_group: optional parameter for group-id. You can also use environment variable AUTO_GROUP to specify this | ||
- auto_wait: optional parameter to specify maximum wait in minutes until security test is completed. The default value is 30 minutes and you can skip wait by specifying 0 value. | ||
- auto_show_status_messages: Specify flag to show status messages from automation testing | ||
|
||
## Sample Usage | ||
You can use Auto CircleCI Orb as follows: | ||
``` | ||
version: 2.1 | ||
orbs: | ||
auto_ci: nowsecure/[email protected].0 | ||
auto_ci: nowsecure/[email protected].5 | ||
jobs: | ||
build: | ||
docker: | ||
|
@@ -34,7 +35,34 @@ jobs: | |
auto_file: /tmp/myworkspace/test.apk | ||
auto_wait: "30" | ||
auto_score: "50" | ||
auto_show_status_messages: "true" | ||
``` | ||
|
||
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 in CircleCI context as bellow. | ||
|
||
### CircleCI project | ||
Create a CircleCI project by visiting https://circleci.com and selecting "ADD PROJECTS" from left tab, e.g. | ||
![Project](https://github.com/nowsecure/blob/master/images/project.png) | ||
|
||
### Context in CircleCI | ||
Create a context in Circle CI by visiting https://circleci.com, selecting "SETTINGS" from left tab and then selecting "Context" from left navigation, e.g. | ||
![NewContext](https://github.com/nowsecure/blob/master/images/create_ctx.png) | ||
|
||
### Environment variables in Context | ||
Define environment variables for your token and group (optionally), e.g. | ||
![Environment](https://github.com/nowsecure/blob/master/images/ctx.png) | ||
|
||
### Add Plugin to your .circleci/config.yml | ||
Use above example to add NowSecure plugin (nowsecure/ci-auto-orb) to your config.yml | ||
|
||
### Submit build | ||
After checking in changes, the circle-ci build should kick off and you can see the output as it's running, e.g. | ||
![Job](https://github.com/nowsecure/blob/master/images/job.png) | ||
|
||
### View Artifacts | ||
Once the job is completed, you can view JSON artifacts generated by the mobile security testing, e.g. | ||
![Job](https://github.com/nowsecure/blob/master/images/artifacts.png) |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.4 | ||
1.0.5 |