Fortinet white logo
Fortinet white logo

Jenkins

Jenkins

Following is a sample code segment that can be configured in Jenkins > (Your App) > Configure > Add build step > Execute Shell to perform a SAST scan.

Note: Make sure to update the parameters in the sample code according to your environment before using it.

env | grep -E "JENKINS_HOME|BUILD_ID|GIT_BRANCH|GIT_COMMIT" > /tmp/env
docker run --pull always --rm --env-file /tmp/env --mount type=bind,source=$PWD,target=/scan registry.fortidevsec.forticloud.com/fdevsec_sast:latest

Following is a sample code segment that can be configured in Jenkins > (Your App) > Configure > Add build step > Execute Shell to perform a DAST scan.

env | grep -E "JENKINS_HOME|BUILD_ID|GIT_BRANCH|GIT_COMMIT" > /tmp/env
docker run --pull always --rm --env-file /tmp/env --mount type=bind,source=$PWD,target=/scan registry.fortidevsec.forticloud.com/fdevsec_dast:latest

Jenkins

Jenkins

Following is a sample code segment that can be configured in Jenkins > (Your App) > Configure > Add build step > Execute Shell to perform a SAST scan.

Note: Make sure to update the parameters in the sample code according to your environment before using it.

env | grep -E "JENKINS_HOME|BUILD_ID|GIT_BRANCH|GIT_COMMIT" > /tmp/env
docker run --pull always --rm --env-file /tmp/env --mount type=bind,source=$PWD,target=/scan registry.fortidevsec.forticloud.com/fdevsec_sast:latest

Following is a sample code segment that can be configured in Jenkins > (Your App) > Configure > Add build step > Execute Shell to perform a DAST scan.

env | grep -E "JENKINS_HOME|BUILD_ID|GIT_BRANCH|GIT_COMMIT" > /tmp/env
docker run --pull always --rm --env-file /tmp/env --mount type=bind,source=$PWD,target=/scan registry.fortidevsec.forticloud.com/fdevsec_dast:latest