Merge branch 'main' into zscan-workflow
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
# and parameters, see https://github.com/anchore/scan-action. For more
|
# and parameters, see https://github.com/anchore/scan-action. For more
|
||||||
# information on Anchore's container image scanning tool Grype, see
|
# information on Anchore's container image scanning tool Grype, see
|
||||||
# https://github.com/anchore/grype
|
# https://github.com/anchore/grype
|
||||||
name: Anchore Container Scan
|
name: Anchore Grype vulnerability scan
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -28,20 +28,21 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read # for actions/checkout to fetch code
|
contents: read # for actions/checkout to fetch code
|
||||||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
||||||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
|
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the code
|
- name: Check out the code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: docker build . --file Dockerfile --tag localbuild/testimage:latest
|
run: docker build . --file Dockerfile --tag localbuild/testimage:latest
|
||||||
- name: Run the Anchore scan action itself with GitHub Advanced Security code scanning integration enabled
|
- name: Run the Anchore Grype scan action
|
||||||
uses: anchore/scan-action@b08527d5ae7f7dc76f9621edb6e49eaf47933ccd
|
uses: anchore/scan-action@d5aa5b6cb9414b0c7771438046ff5bcfa2854ed7
|
||||||
|
id: scan
|
||||||
with:
|
with:
|
||||||
image: "localbuild/testimage:latest"
|
image: "localbuild/testimage:latest"
|
||||||
acs-report-enable: true
|
fail-build: true
|
||||||
fail-build: false
|
severity-cutoff: critical
|
||||||
- name: Upload Anchore Scan Report
|
- name: Upload vulnerability report
|
||||||
uses: github/codeql-action/upload-sarif@v2
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: results.sarif
|
sarif_file: ${{ steps.scan.outputs.sarif }}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Anchore Syft SBOM Scan",
|
"name": "Anchore Syft SBOM Scan",
|
||||||
"organization": "Anchore",
|
"creator": "Anchore",
|
||||||
"description": "Produce Software Bills of Materials based on Anchore's open source Syft tool.",
|
"description": "Produce Software Bills of Materials based on Anchore's open source Syft tool.",
|
||||||
"iconName": "anchore",
|
"iconName": "anchore",
|
||||||
"categories": ["Code Scanning", "dockerfile", "dependency-management"]
|
"categories": ["Code Scanning", "dockerfile", "dependency-management"]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Anchore Container Scan",
|
"name": "Anchore Grype Vulnerability Scan",
|
||||||
"creator": "Indeni Cloudrail",
|
"creator": "Anchore",
|
||||||
"description": "Produce container image vulnerability and compliance reports based on the open-source Anchore container image scanner.",
|
"description": "Produce source and container vulnerability reports based on Anchore's open source Grype tool.",
|
||||||
"iconName": "anchore",
|
"iconName": "anchore",
|
||||||
"categories": ["Code Scanning", "dockerfile"]
|
"categories": ["Code Scanning", "dockerfile"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user