Skip to content

Commit

Permalink
Generate SARIF report for Python libs
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Jun 4, 2024
1 parent b9672fd commit 0883907
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ runs:
release_version: ${{ inputs.version }}
filenames: dist/*
token: ${{ inputs.token }}
- name: Generate Sarif Report
uses: mongodb-labs/drivers-github-tools/code-scanning-export@v2
with:
output-file: sarif-report.json
ref: ${{ inputs.version }}
- name: Run publish script
shell: bash
run: ${{github.action_path}}/publish.sh
Expand Down
2 changes: 2 additions & 0 deletions python/publish/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -eux

mv sarif-report.json $S3_ASSETS

if [ "$DRY_RUN" == "false" ]; then
echo "Uploading Release Reports"
TARGET=s3://${AWS_BUCKET}/${PRODUCT_NAME}/${VERSION}
Expand Down

0 comments on commit 0883907

Please sign in to comment.