Skip to content

Commit

Permalink
test sarif output file can be uploaded to github w/ burnettk
Browse files Browse the repository at this point in the history
  • Loading branch information
jasquat committed Aug 16, 2024
1 parent 54d81b3 commit 7737556
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,30 @@ jobs:
- 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
# - name: Run ECR Scan and Get SARIF Report
# uses: sartography/github-actions-library/wait-for-ecr-scan-and-get-sarif@main
# with:
# repository_name: "infr/testcloud2202"
# image_tag: "main"
# aws_region: "us-east-2"
# output_file: "report.sarif"

- name: Set up Python 3.12
uses: actions/[email protected]
with:
repository_name: "infr/testcloud2202"
image_tag: "main"
aws_region: "us-east-2"
output_file: "report.sarif"
python-version: 3.12

- name: Install dependencies
shell: bash
run: |
pip install -r wait-for-ecr-scan-and-get-sarif/requirements.txt
- name: Run the Python script to convert ECR scan to SARIF
shell: bash
run: |
python wait-for-ecr-scan-and-get-sarif/pylib/aws_scan_findings_to_sarif.py \
--input_file wait-for-ecr-scan-and-get-sarif/tests/ecr-scan-result-ubuntu.json \
--output_file ${{ inputs.output_file }}
- name: Upload SARIF report as artifact
uses: actions/upload-artifact@v3
Expand All @@ -32,9 +49,4 @@ jobs:
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: report.sarif
category: my-analysis-tool

# - name: Upload SARIF report to GitHub Code Scanning
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: report.sarif
category: security

0 comments on commit 7737556

Please sign in to comment.