@@ -19,20 +19,57 @@ jobs:
19
19
- id : release
20
20
uses : google-github-actions/release-please-action@v4
21
21
22
- compress_sign_and_upload :
23
- needs : [release_please]
22
+ # compress_sign_and_upload:
23
+ # needs: [release_please]
24
+ # if: ${{ needs.release_please.outputs.release_created }}
25
+ # runs-on: ubuntu-latest
26
+ # steps:
27
+ # - uses: actions/checkout@v4
28
+ # - name: actions/setup
29
+ # uses: ./.github/actions/setup
30
+ # - name: actions/compress_sign_and_upload
31
+ # uses: ./.github/actions/compress_sign_and_upload
32
+ # with:
33
+ # garasign_username: ${{ secrets.GRS_CONFIG_USER1_USERNAME }}
34
+ # garasign_password: ${{ secrets.GRS_CONFIG_USER1_PASSWORD }}
35
+ # artifactory_username: ${{ secrets.ARTIFACTORY_USER }}
36
+ # artifactory_password: ${{ secrets.ARTIFACTORY_PASSWORD }}
37
+ # - run: npm publish --provenance
38
+ # env:
39
+ # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40
+
41
+ generate_sarif_report :
42
+ environment : release
24
43
runs-on : ubuntu-latest
44
+ permissions :
45
+ # required for all workflows
46
+ security-events : write
47
+ id-token : write
48
+ contents : write
49
+
25
50
steps :
26
51
- uses : actions/checkout@v4
27
52
- name : actions/setup
28
53
uses : ./.github/actions/setup
29
- - name : actions/compress_sign_and_upload
30
- uses : ./. github/actions/compress_sign_and_upload
54
+ - name : Set up drivers-github-tools
55
+ uses : mongodb-labs/drivers- github-tools/setup@v2
31
56
with :
32
- garasign_username : ${{ secrets.GRS_CONFIG_USER1_USERNAME }}
33
- garasign_password : ${{ secrets.GRS_CONFIG_USER1_PASSWORD }}
34
- artifactory_username : ${{ secrets.ARTIFACTORY_USER }}
35
- artifactory_password : ${{ secrets.ARTIFACTORY_PASSWORD }}
36
- - run : npm publish --provenance
37
- env :
38
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
57
+ aws_region_name : us-east-1
58
+ aws_role_arn : ${{ secrets.aws_role_arn }}
59
+ aws_secret_id : ${{ secrets.aws_secret_id }}
60
+
61
+ - name : " Generate Sarif Report"
62
+ uses : " alcaeus/drivers-github-tools/code-scanning-export@export-code-scanning-report"
63
+ with :
64
+ ref : main
65
+ 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
0 commit comments