Update jenkins again
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -36,7 +36,7 @@ pipeline {
|
|||||||
docker run --rm -v "\$(pwd):/src" \
|
docker run --rm -v "\$(pwd):/src" \
|
||||||
returntocorp/semgrep \
|
returntocorp/semgrep \
|
||||||
semgrep scan --config=p/ci --debug \
|
semgrep scan --config=p/ci --debug \
|
||||||
--sarif --output /src/semgrep.sarif \
|
--json --output /src/semgrep.json \
|
||||||
/src/internal /src/cmd || true
|
/src/internal /src/cmd || true
|
||||||
|
|
||||||
echo "After semgrep:"
|
echo "After semgrep:"
|
||||||
@@ -52,7 +52,7 @@ pipeline {
|
|||||||
-H "Authorization: Token ${DD_API_KEY}" \
|
-H "Authorization: Token ${DD_API_KEY}" \
|
||||||
-F "scan_type=SARIF" \
|
-F "scan_type=SARIF" \
|
||||||
-F "file=@\$(pwd)/semgrep.sarif" \
|
-F "file=@\$(pwd)/semgrep.sarif" \
|
||||||
-F "product_name=ReSendit" \
|
-F "product_name=Sendit" \
|
||||||
-F "engagement_name=Jenkins-CI" \
|
-F "engagement_name=Jenkins-CI" \
|
||||||
-F "auto_create_context=true" \
|
-F "auto_create_context=true" \
|
||||||
-F "close_old_findings=true"
|
-F "close_old_findings=true"
|
||||||
@@ -112,4 +112,4 @@ pipeline {
|
|||||||
// sh 'rm -f semgrep.sarif || true'
|
// sh 'rm -f semgrep.sarif || true'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user