Skip to content

Commit b3eba5f

Browse files
add ssdlc action
1 parent 64b6b8f commit b3eba5f

File tree

2 files changed

+58
-56
lines changed

2 files changed

+58
-56
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444
runs-on: ubuntu-latest
4545
strategy:
4646
matrix:
47-
linux_arch: [s390x, arm64, amd64]
47+
linux_arch: [amd64]
48+
# linux_arch: [s390x, arm64, amd64]
4849
fail-fast: false
4950
steps:
5051
- uses: actions/checkout@v4
@@ -84,7 +85,8 @@ jobs:
8485
runs-on: ubuntu-latest
8586
strategy:
8687
matrix:
87-
linux_arch: [amd64, arm64]
88+
linux_arch: [amd64]
89+
# linux_arch: [amd64, arm64]
8890
fail-fast: false
8991
steps:
9092
- uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -26,67 +26,67 @@ jobs:
2626
name: "Perform any build or bundling steps, as necessary."
2727
uses: ./.github/workflows/build.yml
2828

29-
# ssdlc:
30-
# needs: [release_please, build]
31-
# permissions:
32-
# # required for all workflows
33-
# security-events: write
34-
# id-token: write
35-
# contents: write
36-
# environment: release
37-
# runs-on: ubuntu-latest
38-
# steps:
39-
# - uses: actions/checkout@v4
29+
ssdlc:
30+
needs: [release_please, build]
31+
permissions:
32+
# required for all workflows
33+
security-events: write
34+
id-token: write
35+
contents: write
36+
environment: release
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v4
4040

41-
# - name: Install Node and dependencies
42-
# uses: mongodb-labs/drivers-github-tools/node/setup@v2
43-
# with:
44-
# ignore_install_scripts: true
41+
- name: Install Node and dependencies
42+
uses: mongodb-labs/drivers-github-tools/node/setup@v2
43+
with:
44+
ignore_install_scripts: true
4545

46-
# - name: Load version and package info
47-
# uses: mongodb-labs/drivers-github-tools/node/get_version_info@v2
48-
# with:
49-
# npm_package_name: mongodb-client-encryption
46+
- name: Load version and package info
47+
uses: mongodb-labs/drivers-github-tools/node/get_version_info@v2
48+
with:
49+
npm_package_name: "@mongodb-js/zstd"
5050

51-
# - name: actions/compress_sign_and_upload
52-
# uses: mongodb-labs/drivers-github-tools/node/sign_node_package@v2
53-
# with:
54-
# aws_role_arn: ${{ secrets.AWS_ROLE_ARN }}
55-
# aws_region_name: us-east-1
56-
# aws_secret_id: ${{ secrets.AWS_SECRET_ID }}
57-
# npm_package_name: mongodb-client-encryption
58-
# dry_run: ${{ needs.release_please.outputs.release_created == '' }}
59-
# sign_native: true
51+
- name: actions/compress_sign_and_upload
52+
uses: mongodb-labs/drivers-github-tools/node/sign_node_package@v2
53+
with:
54+
aws_role_arn: ${{ secrets.AWS_ROLE_ARN }}
55+
aws_region_name: us-east-1
56+
aws_secret_id: ${{ secrets.AWS_SECRET_ID }}
57+
npm_package_name: "@mongodb-js/zstd"
58+
dry_run: ${{ needs.release_please.outputs.release_created == '' }}
59+
sign_native: true
6060

61-
# - name: Copy sbom file to release assets
62-
# shell: bash
63-
# if: ${{ 'mongodb-client-encryption-6.1' == '' }}
64-
# run: cp sbom.json ${{ env.S3_ASSETS }}/sbom.json
61+
- name: Copy sbom file to release assets
62+
shell: bash
63+
if: ${{ 'node-zstd' == '' }}
64+
run: cp sbom.json ${{ env.S3_ASSETS }}/sbom.json
6565

66-
# # only used for mongodb-client-encryption
67-
# - name: Augment SBOM and copy to release assets
68-
# if: ${{ 'mongodb-client-encryption-6.1' != '' }}
69-
# uses: mongodb-labs/drivers-github-tools/sbom@v2
70-
# with:
71-
# silk_asset_group: 'mongodb-client-encryption-6.1'
72-
# sbom_file_name: sbom.json
66+
# only used for mongodb-client-encryption
67+
- name: Augment SBOM and copy to release assets
68+
if: ${{ 'node-zstd' != '' }}
69+
uses: mongodb-labs/drivers-github-tools/sbom@v2
70+
with:
71+
silk_asset_group: "node-zstd"
72+
sbom_file_name: sbom.json
7373

74-
# - name: Generate authorized pub report
75-
# uses: mongodb-labs/drivers-github-tools/full-report@v2
76-
# with:
77-
# release_version: ${{ env.package_version }}
78-
# product_name: mongodb-client-encryption
79-
# sarif_report_target_ref: main
80-
# third_party_dependency_tool: n/a
81-
# dist_filenames: artifacts/*
82-
# token: ${{ github.token }}
83-
# sbom_file_name: sbom.json
74+
- name: Generate authorized pub report
75+
uses: mongodb-labs/drivers-github-tools/full-report@v2
76+
with:
77+
release_version: ${{ env.package_version }}
78+
product_name: "@mongodb-js/zstd"
79+
sarif_report_target_ref: main
80+
third_party_dependency_tool: n/a
81+
dist_filenames: artifacts/*
82+
token: ${{ github.token }}
83+
sbom_file_name: sbom.json
8484

85-
# - uses: mongodb-labs/drivers-github-tools/upload-s3-assets@v2
86-
# with:
87-
# version: ${{ env.package_version }}
88-
# product_name: mongodb-client-encryption
89-
# dry_run: ${{ needs.release_please.outputs.release_created == '' }}
85+
- uses: mongodb-labs/drivers-github-tools/upload-s3-assets@v2
86+
with:
87+
version: ${{ env.package_version }}
88+
product_name: "@mongodb-js/zstd"
89+
dry_run: ${{ needs.release_please.outputs.release_created == '' }}
9090

9191
# publish:
9292
# needs: [release_please, ssdlc, build]

0 commit comments

Comments
 (0)