Travis CI
Paste this code segment in the .travis.yml file for a SAST scan.
language: python
python:
- "3.6"
service:
- docker
jobs:
include:
– stage: SAST
before_install:
- docker pull registry.fortidevsec.forticloud.com/fdevsec_sast:latestscript:
- env | grep -E "TRAVIS|TRAVIS_BUILD_ID|TRAVIS_BRANCH|TRAVIS_COMMIT" > /tmp/env
- docker run --rm --env-file /tmp/env --mount type=bind,source=$PWD,target=/scan registry.fortidevsec.forticloud.com/fdevsec_sast:latest
Paste this code segment in the .travis.yml file for a DAST scan.
language: python
python:
- "3.6"
service:
- docker
jobs:
include:
– stage: DAST
before_install:
- docker pull registry.fortidevsec.forticloud.com/fdevsec_dast:latestscript:
- env | grep -E "TRAVIS|TRAVIS_BUILD_ID|TRAVIS_BRANCH|TRAVIS_COMMIT" > /tmp/env
- docker run --rm --env-file /tmp/env --mount type=bind,source=$PWD,target=/scan registry.fortidevsec.forticloud.com/fdevsec_dast:latest