Use this action to scan image binaries with the Anchore scanner to identify and fix security vulnerabilities.
The following registries are supported:
-
AWS ECR
-
Docker Hub
-
JFrog
-
Nexus
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
Yes |
The Anchore server URL. |
|
String |
Yes |
The Anchore server username. |
|
String |
Yes |
The Anchore server password. |
|
String |
Yes |
The Anchore server account name. |
|
String |
Yes |
The Anchore server proxy. |
|
String |
Yes |
The image registry URL. |
|
String |
Yes |
The image registry username. |
|
String |
Yes |
The image registry password. |
|
String |
Yes |
The container image source. Supported options are:
|
|
String |
Yes |
The container image location. |
|
String |
Yes |
The container image tag. |
In your YAML file, add:
- name: Scan with Anchore
uses: cloudbees-io/anchore-scan-container@v1
with:
server-url: "server_url"
server-username: "anchore_server_username"
server-password: ${{ secrets.ANCHORE_PASSWORD }}
server-account-name: "anchore_server_account_name"
server-proxy: "anchore_server_proxy"
registry-url: ${{ vars.ANCHORE_REGISTRY }}
registry-username: ${{ vars.REGISTRY_USERNAME }}
registry-password: ${{ secrets.REGISTRY_PASSWORD }}
image-source: "/image_source"
image-location: "test-example.anchore.com/local/alpine"
image-tag: "latest"This code is made available under the MIT license.
-
Learn more about using actions in CloudBees workflows.
-
Learn about the CloudBees platform.