Skip to content

Commit 5758922

Browse files
authored
Generate SARIF report for Python libs (#16)
1 parent b9672fd commit 5758922

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

python/publish/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ runs:
4242
release_version: ${{ inputs.version }}
4343
filenames: dist/*
4444
token: ${{ inputs.token }}
45+
- name: Generate Sarif Report
46+
uses: mongodb-labs/drivers-github-tools/code-scanning-export@v2
47+
with:
48+
output-file: sarif-report.json
49+
ref: ${{ inputs.version }}
4550
- name: Run publish script
4651
shell: bash
4752
run: ${{github.action_path}}/publish.sh

python/publish/publish.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -eux
44

5+
mv sarif-report.json $S3_ASSETS
6+
57
if [ "$DRY_RUN" == "false" ]; then
68
echo "Uploading Release Reports"
79
TARGET=s3://${AWS_BUCKET}/${PRODUCT_NAME}/${VERSION}

0 commit comments

Comments
 (0)