added github action to test scan action w/ burnettk

This commit is contained in:
jasquat 2024-08-14 16:26:26 -04:00
parent 06b3125646
commit 3c6049f935
No known key found for this signature in database
2 changed files with 35 additions and 1 deletions

34
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: "ECR Scan and Retrieve SARIF Report"
on:
push:
branches:
- main
workflow_dispatch:
jobs:
ecr-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run ECR Scan and Get SARIF Report
uses: sartography/github-actions-library/wait-for-ecr-scan-and-get-sarif@main
with:
repository_name: "my-ecr-repository"
image_tag: "latest"
aws_region: "us-west-2"
output_file: "report.sarif"
- name: Upload SARIF report as artifact
uses: actions/upload-artifact@v3
with:
name: sarif-report
path: report.sarif
# - name: Upload SARIF report to GitHub Code Scanning
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: report.sarif

View File

@ -23,7 +23,7 @@ outputs:
runs:
using: "docker"
image: "python:3.9"
image: "python:3.12"
args:
- "python"
- "/wait-for-ecr-scan-and-get-sarif/main.py"