Skip to content

Commit eade3e4

Browse files
add upload to s3 capability
1 parent bb256b8 commit eade3e4

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

.github/actions/publish_asset_to_s3/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ inputs:
1414
dry_run:
1515
description: "Whether this is a dry run"
1616
required: false
17-
type: boolean
18-
default: false
17+
default: 'false'
1918

2019
runs:
2120
using: composite
@@ -31,6 +30,7 @@ runs:
3130
else
3231
echo "Dry run, not uploading to S3 or creating GitHub Release"
3332
echo "Would upload $FILES"
33+
cat $FILES
3434
fi
3535
env:
3636
VERSION: ${{ inputs.version }}

.github/workflows/release.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
generate_sarif_report:
4242
environment: release
4343
runs-on: ubuntu-latest
44+
needs: [release_please]
4445
permissions:
4546
# required for all workflows
4647
security-events: write
@@ -63,21 +64,11 @@ jobs:
6364
with:
6465
ref: main
6566
output-file: sarif-report.json
66-
67-
- name: "Move sarif report to output file"
68-
shell: bash
69-
run: cp sarif-report.json ${{ env.S3_ASSETS }}/sarif-report.json
70-
71-
- name: 'Print (TODO - upload to s3 instead)'
72-
shell: bash
73-
run: |
74-
ls ${{ env.S3_ASSETS }}
75-
cat ${{ env.S3_ASSETS }}/sarif-report.json
7667

7768
- name: actions/publish_asset_to_s3
7869
uses: ./.github/actions/publish_asset_to_s3
7970
with:
8071
version: v6.5.0
8172
product_name: js-bson-development
8273
files: sarif-report.json
83-
dry_run: true
74+
dry_run: ${{ needs.release_please.outputs.release_created }}

0 commit comments

Comments
 (0)