A CircleCI Orb for Salus
attribute | description | default | options |
---|---|---|---|
salus_executor | CircleCI executor to use that specifies Salus environment | coinbase/salus:2.4.2 |
See executor reference |
active_scanners | Scanners to run | all | Brakeman, PatternSearch, BundleAudit, NPMAudit |
enforced_scanners | Scanners that block builds | all | Brakeman, PatternSearch, BundleAudit, NPMAudit |
report_uri | Where to send Salus reports | file://../salus-report.json | Any URI |
report_format | What format to use for report | json | json, yaml, txt |
report_verbosity | Whether to enable a verbose report | true | true, false |
configuration_file | Location of config file in repo (overrides all other parameters except salus_executor) | "" | Any filename |
Note: active_scanners and enforced_scanners must be yaml formatted for Salus configuration file.
.circleci/config.yml
version: 2.1
orbs:
salus: federacy/[email protected]
workflows:
main:
jobs:
- salus/scan
version: 2.1
orbs:
salus: federacy/[email protected]
workflows:
main:
jobs:
- salus/scan:
enforced_scanners: "none"
version: 2.1
orbs:
salus: federacy/[email protected]
workflows:
main:
jobs:
- salus/scan:
active_scanners: "\n - Brakeman"
enforced_scanners: "\n - Brakeman"
version: 2.1
orbs:
salus: federacy/[email protected]
executors:
salus_latest:
docker:
- image: coinbase/salus:latest
workflows:
salus_scan:
jobs:
- salus/scan:
salus_executor:
name: salus_latest