Skip to content

Commit 440a6a0

Browse files
uplaod sbom
1 parent 942e6b3 commit 440a6a0

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,37 @@ jobs:
6868
product_name: node-kerberos
6969
file: sarif-report.json
7070
dry_run: ${{ needs.release_please.outputs.release_created == '' }}
71+
72+
upload_sbom_lite:
73+
environment: release
74+
runs-on: ubuntu-latest
75+
needs: [release_please]
76+
permissions:
77+
# required for all workflows
78+
security-events: write
79+
id-token: write
80+
contents: write
81+
82+
steps:
83+
- uses: actions/checkout@v4
84+
- name: Set up drivers-github-tools
85+
uses: mongodb-labs/drivers-github-tools/setup@v2
86+
with:
87+
aws_region_name: us-east-1
88+
aws_role_arn: ${{ secrets.aws_role_arn }}
89+
aws_secret_id: ${{ secrets.aws_secret_id }}
90+
91+
- name: Get release version and release package file name
92+
id: get_version
93+
shell: bash
94+
run: |
95+
package_version=$(jq --raw-output '.version' package.json)
96+
echo "package_version=${package_version}" >> "$GITHUB_OUTPUT"
97+
98+
- name: actions/publish_asset_to_s3
99+
uses: mongodb-labs/drivers-github-tools/node/publish_asset_to_s3@main
100+
with:
101+
version: ${{ steps.get_version.outputs.package_version }}
102+
product_name: node-mongodb-native
103+
file: sbom.json
104+
dry_run: ${{ needs.release_please.outputs.release_created == '' }}

0 commit comments

Comments
 (0)