Skip to content

Commit

Permalink
add ssdlc action
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Nov 26, 2024
1 parent 64b6b8f commit b3eba5f
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 56 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
linux_arch: [s390x, arm64, amd64]
linux_arch: [amd64]
# linux_arch: [s390x, arm64, amd64]
fail-fast: false
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -84,7 +85,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
linux_arch: [amd64, arm64]
linux_arch: [amd64]
# linux_arch: [amd64, arm64]
fail-fast: false
steps:
- uses: actions/checkout@v4
Expand Down
108 changes: 54 additions & 54 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,67 +26,67 @@ jobs:
name: "Perform any build or bundling steps, as necessary."
uses: ./.github/workflows/build.yml

# ssdlc:
# needs: [release_please, build]
# permissions:
# # required for all workflows
# security-events: write
# id-token: write
# contents: write
# environment: release
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
ssdlc:
needs: [release_please, build]
permissions:
# required for all workflows
security-events: write
id-token: write
contents: write
environment: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# - name: Install Node and dependencies
# uses: mongodb-labs/drivers-github-tools/node/setup@v2
# with:
# ignore_install_scripts: true
- name: Install Node and dependencies
uses: mongodb-labs/drivers-github-tools/node/setup@v2
with:
ignore_install_scripts: true

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

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

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

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

# - name: Generate authorized pub report
# uses: mongodb-labs/drivers-github-tools/full-report@v2
# with:
# release_version: ${{ env.package_version }}
# product_name: mongodb-client-encryption
# sarif_report_target_ref: main
# third_party_dependency_tool: n/a
# dist_filenames: artifacts/*
# token: ${{ github.token }}
# sbom_file_name: sbom.json
- name: Generate authorized pub report
uses: mongodb-labs/drivers-github-tools/full-report@v2
with:
release_version: ${{ env.package_version }}
product_name: "@mongodb-js/zstd"
sarif_report_target_ref: main
third_party_dependency_tool: n/a
dist_filenames: artifacts/*
token: ${{ github.token }}
sbom_file_name: sbom.json

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

# publish:
# needs: [release_please, ssdlc, build]
Expand Down

0 comments on commit b3eba5f

Please sign in to comment.