@@ -45,139 +45,22 @@ jobs:
45
45
dry_run : ${{ needs.release_please.outputs.release_created == '' }}
46
46
47
47
- name : Generate authorized pub report
48
- uses : mongodb-labs /drivers-github-tools/authorized-pub@v2
48
+ uses : baileympearson /drivers-github-tools/full-report@adjust-shared-actions-for-node
49
49
with :
50
50
release_version : ${{ steps.get_version.outputs.package_version }}
51
51
product_name : node-mongodb-native
52
+ sarif_report_target_ref : main
52
53
# <package> and <package>.sig
53
- filenames : ${{ steps.get_vars.outputs.package_file }}*
54
+ dist_filenames : ${{ steps.get_vars.outputs.package_file }}*
54
55
token : ${{ github.token }}
55
56
56
- - name : actions/publish_asset_to_s3
57
- uses : mongodb-labs/drivers-github-tools/node/publish_asset_to_s3@v2
57
+ - uses : mongodb-labs/drivers-github-tools/upload-s3-assets@v2
58
58
with :
59
- version : ${{ steps.get_version.outputs.package_version }}
60
- product_name : node-mongodb-native
61
- file : ${{env.S3_ASSETS}}/authorized-publication.txt
59
+ version : ${{ inputs.version }}
60
+ product_name : ${{ inputs.product_name }}
62
61
dry_run : ${{ needs.release_please.outputs.release_created == '' }}
63
62
64
63
- run : npm publish --provenance --tag=latest
65
64
if : ${{ needs.release_please.outputs.release_created }}
66
65
env :
67
66
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
68
-
69
- generate_sarif_report :
70
- environment : release
71
- runs-on : ubuntu-latest
72
- needs : [release_please]
73
- permissions :
74
- # required for all workflows
75
- security-events : write
76
- id-token : write
77
- contents : write
78
-
79
- steps :
80
- - uses : actions/checkout@v4
81
- - name : Set up drivers-github-tools
82
- uses : mongodb-labs/drivers-github-tools/setup@v2
83
- with :
84
- aws_region_name : us-east-1
85
- aws_role_arn : ${{ secrets.aws_role_arn }}
86
- aws_secret_id : ${{ secrets.aws_secret_id }}
87
-
88
- - name : " Generate Sarif Report"
89
- uses : mongodb-labs/drivers-github-tools/code-scanning-export@v2
90
- with :
91
- ref : main
92
- output-file : sarif-report.json
93
-
94
- - name : Get release version and release package file name
95
- id : get_version
96
- shell : bash
97
- run : |
98
- package_version=$(jq --raw-output '.version' package.json)
99
- echo "package_version=${package_version}" >> "$GITHUB_OUTPUT"
100
- - name : actions/publish_asset_to_s3
101
- uses : mongodb-labs/drivers-github-tools/node/publish_asset_to_s3@v2
102
- with :
103
- version : ${{ steps.get_version.outputs.package_version }}
104
- product_name : node-mongodb-native
105
- file : sarif-report.json
106
- dry_run : ${{ needs.release_please.outputs.release_created == '' }}
107
-
108
- upload_sbom_lite :
109
- environment : release
110
- runs-on : ubuntu-latest
111
- needs : [release_please]
112
- permissions :
113
- # required for all workflows
114
- security-events : write
115
- id-token : write
116
- contents : write
117
-
118
- steps :
119
- - uses : actions/checkout@v4
120
- - name : Set up drivers-github-tools
121
- uses : mongodb-labs/drivers-github-tools/setup@v2
122
- with :
123
- aws_region_name : us-east-1
124
- aws_role_arn : ${{ secrets.aws_role_arn }}
125
- aws_secret_id : ${{ secrets.aws_secret_id }}
126
-
127
- - name : Get release version and release package file name
128
- id : get_version
129
- shell : bash
130
- run : |
131
- package_version=$(jq --raw-output '.version' package.json)
132
- echo "package_version=${package_version}" >> "$GITHUB_OUTPUT"
133
-
134
- - name : actions/publish_asset_to_s3
135
- uses : mongodb-labs/drivers-github-tools/node/publish_asset_to_s3@v2
136
- with :
137
- version : ${{ steps.get_version.outputs.package_version }}
138
- product_name : node-mongodb-native
139
- file : sbom.json
140
- dry_run : ${{ needs.release_please.outputs.release_created == '' }}
141
-
142
- generate_compliance_report :
143
- environment : release
144
- runs-on : ubuntu-latest
145
- needs : [release_please]
146
- permissions :
147
- # required for all workflows
148
- security-events : write
149
- id-token : write
150
- contents : write
151
-
152
- steps :
153
- - uses : actions/checkout@v4
154
- - name : Set up drivers-github-tools
155
- uses : mongodb-labs/drivers-github-tools/setup@v2
156
- with :
157
- aws_region_name : us-east-1
158
- aws_role_arn : ${{ secrets.aws_role_arn }}
159
- aws_secret_id : ${{ secrets.aws_secret_id }}
160
-
161
- - name : Get release version and release package file name
162
- id : get_version
163
- shell : bash
164
- run : |
165
- package_version=$(jq --raw-output '.version' package.json)
166
- echo "package_version=${package_version}" >> "$GITHUB_OUTPUT"
167
-
168
- - name : Generate compliance report
169
- uses : mongodb-labs/drivers-github-tools/compliance-report@v2
170
- with :
171
- sbom_name : sbom.json
172
- sarif_name : sarif-report.json
173
- security_report_location : tbd
174
- release_version : ${{ steps.get_version.outputs.package_version }}
175
- token : ${{ github.token }}
176
-
177
- - name : actions/publish_asset_to_s3
178
- uses : mongodb-labs/drivers-github-tools/node/publish_asset_to_s3@v2
179
- with :
180
- version : ${{ steps.get_version.outputs.package_version }}
181
- product_name : node-mongodb-native
182
- file : ${{env.S3_ASSETS}}/ssdlc_compliance_report.txt
183
- dry_run : ${{ needs.release_please.outputs.release_created == '' }}
0 commit comments