-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Felipe Costa
authored
May 7, 2020
1 parent
b1a108b
commit a9fc560
Showing
1 changed file
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,7 +168,7 @@ be given with `DSSC_IMAGE_NAME`. | |
## Example Workflow Using Github Actions | ||
|
||
```yml | ||
name: Deep Security Smart Check Pipeline Example | ||
name: Deep Security Smart Check | ||
on: | ||
push: | ||
|
@@ -179,19 +179,28 @@ jobs: | |
SmartCheck-Scan-Action: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deep Security Smart Check | ||
uses: felipecosta09/[email protected] | ||
- name: Deep Security Smart Check Scan ECR | ||
uses: felipecosta09/[email protected] | ||
with: | ||
DSSC_IMAGE_NAME: myECRrepo/myimage | ||
DSSC_SMARTCHECK_HOST: ${{ secrets.DSSC_SMARTCHECK_HOST }} | ||
DSSC_SMARTCHECK_USER: ${{ secrets.DSSC_SMARTCHECK_USER }} | ||
DSSC_SMARTCHECK_PASSWORD: ${{ secrets.DSSC_SMARTCHECK_PASSWORD }} | ||
DSSC_IMAGE_PULL_AUTH: ${{ secrets.DSSC_IMAGE_PULL_AUTH }} | ||
DSSC_FINDINGS_THRESHOLD: '{"malware": 999, "vulnerabilities": { "defcon1": 999, "critical": 999, "high": 999 }, "contents": { "defcon1": 999, "critical": 999, "high": 999 }, "checklists": { "defcon1": 999, "critical": 999, "high": 999 }}' | ||
DSSC_INSECURE_SKIP_TLS_VERIFY: true | ||
DSSC_INSECURE_SKIP_REGISTRY_TLS_VERIFY: true | ||
- name: Deep Security Smart Check Scan ACR | ||
uses: felipecosta09/[email protected] | ||
with: | ||
# Container repository, eg myorg/myimage. | ||
DSSC_IMAGE_NAME: ${{ secrets.DSSC_IMAGE_NAME }} | ||
# Deep Security Smart Check url, eg mydomain.com. | ||
DSSC_IMAGE_NAME: myrepo.azurecr.io/myimage | ||
DSSC_SMARTCHECK_HOST: ${{ secrets.DSSC_SMARTCHECK_HOST }} | ||
# Deep Security Smart Check username, eg admin. | ||
DSSC_SMARTCHECK_USER: ${{ secrets.DSSC_SMARTCHECK_USER }} | ||
# Deep Security Smart Check password, eg 12345. | ||
DSSC_SMARTCHECK_PASS: ${{ secrets.DSSC_SMARTCHECK_PASSWORD }} | ||
# Container registry credentials in a json format, eg '{"username":"<user>","password":"<password>"}' or {"aws":{"region":"us-east-1","accessKeyID":"'AWS_ACCESS_KEY_ID'","secretAccessKey":"'AWS_SECRET_ACCESS_KEY'"}}' | ||
DSSC_IMAGE_PULL_AUTH: ${{ secrets.DSSC_IMAGE_PULL_AUTH }} | ||
DSSC_SMARTCHECK_PASSWORD: ${{ secrets.DSSC_SMARTCHECK_PASSWORD }} | ||
DSSC_IMAGE_PULL_AUTH: '{"username": "${{ secrets.ACR_USER }}","password": "${{ secrets.ACR_PASSWORD }}"}' | ||
DSSC_FINDINGS_THRESHOLD: '{"malware": 999, "vulnerabilities": { "defcon1": 999, "critical": 999, "high": 999 }, "contents": { "defcon1": 999, "critical": 999, "high": 999 }, "checklists": { "defcon1": 999, "critical": 999, "high": 999 }}' | ||
DSSC_INSECURE_SKIP_TLS_VERIFY: true | ||
DSSC_INSECURE_SKIP_REGISTRY_TLS_VERIFY: true | ||
``` | ||
|
||
## Example Workflow Running a Docker Container | ||
|