-
Notifications
You must be signed in to change notification settings - Fork 253
66 lines (58 loc) · 1.99 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
on:
push:
branches: [main]
workflow_dispatch: {}
permissions:
contents: write
pull-requests: write
id-token: write
name: release
jobs:
release_please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- id: release
uses: google-github-actions/release-please-action@v4
# compress_sign_and_upload:
# needs: [release_please]
# if: ${{ needs.release_please.outputs.release_created }}
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: actions/setup
# uses: ./.github/actions/setup
# - name: actions/compress_sign_and_upload
# uses: ./.github/actions/compress_sign_and_upload
# with:
# garasign_username: ${{ secrets.GRS_CONFIG_USER1_USERNAME }}
# garasign_password: ${{ secrets.GRS_CONFIG_USER1_PASSWORD }}
# artifactory_username: ${{ secrets.ARTIFACTORY_USER }}
# artifactory_password: ${{ secrets.ARTIFACTORY_PASSWORD }}
# - run: npm publish --provenance
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
generate_sarif_report:
runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: write
steps:
- uses: actions/checkout@v4
- name: actions/setup
uses: ./.github/actions/setup
- name: Set up drivers-github-tools
uses: mongodb-labs/drivers-github-tools/setup@v2
with:
aws_region_name: ${{ secrets.aws_region_name }}
aws_role_arn: ${{ secrets.aws_role_arn }}
aws_secret_id: ${{ secrets.aws_secret_id }}
- name: "Generate Sarif Report"
uses: "alcaeus/drivers-github-tools/code-scanning-export@export-code-scanning-report"
with:
ref: main
output-path: ${{ env.S3_ASSETS }}/sarif-report.json
- name: 'Print (TODO - upload to s3 instead)'
shell: bash
run: cat ${{ env.S3_ASSETS }}/sarif-report.json