-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub Code Scanning Integration (#32)
* Initial GitHub Automatic Code Scanning (ACS) integration, including new parameters to instruct the action to generate SARIF results that are compatible with ACS report rendering Signed-off-by: Daniel Nurmi <nurmi@anchore.com> * disable actual SARIF upload in the sarifdemo workflow, instead cat the results to stdout Signed-off-by: Daniel Nurmi <nurmi@anchore.com> * update the README and option descriptions for ACS parameters Signed-off-by: Daniel Nurmi <nurmi@anchore.com> * update the README Signed-off-by: Daniel Nurmi <nurmi@anchore.com> * use the input dockerfile_path parameter as the file location for generated sarif results Signed-off-by: Daniel Nurmi <nurmi@anchore.com> * update README and examplee workflow with the stable upload-sarif action locations Signed-off-by: Daniel Nurmi <nurmi@anchore.com>
- Loading branch information
Showing
6 changed files
with
453 additions
and
21 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Run Anchore Scan Action (ACS SARIF Demo)" | ||
|
||
on: [push] | ||
|
||
jobs: | ||
demo: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Run the local anchore scan action itself with sarif generation enabled | ||
uses: ./ | ||
with: | ||
image-reference: "debian:8" | ||
debug: true | ||
acs-report-enable: true | ||
#acs-report-severity-cutoff: "Medium" | ||
- name: Inspect Generated SARIF | ||
run: cat results.sarif | ||
# Uncomment this section to enable report upload | ||
# - name: Upload Anchore Scan SARIF | ||
# uses: github/codeql-action/upload-sarif@v1 | ||
# with: | ||
# sarif_file: results.sarif |
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
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
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
Oops, something went wrong.