Sysdig Secure
This library leverages Sysdig Secure’s inline scanning script to scan container images, report the information to the Sysdig Secure server, and download a PDF report of the findings.
Steps Contributed
Step | Description |
---|---|
|
Scans container images determined by |
Library Configuration Options
Field | Type | Description | Default Value |
---|---|---|---|
scan_script_url |
String |
A URL from which to download the inline_scan.sh file |
|
sysdig_secure_url |
String |
The Sysdig Secure URL to publish results to |
|
cred |
String |
A string matching a credential id of a secret text credential in the Jenkins Credential store holding an API token to authenticate to the Sysdig Secure API |
libraries{
sysdig_secure{
cred = "sysdig-secure-api-token"
}
}
Results
The scan_container_images()
step will generate a PDF report of the scan if the upload to the Sysdig Secure API is successful. Here’s an example.
External Dependencies
This library, by nature of the inline scanning script, requires that:
-
a running docker daemon is available
-
internet access to pull an image from docker.io/anchore/inline-scan
At the time of writing, this library could be expanded to pass a custom image to perform the scanning, perhaps helpful if proxying through a local registry, by setting the environment variable |