-
Notifications
You must be signed in to change notification settings - Fork 55
37 lines (37 loc) · 1.29 KB
/
srm-bridge-cli.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
# example workflow for SRM scans using the Bridge CLI
name: srm-bridge-cli
on:
push:
branches: [ main, master, develop, stage, release ]
workflow_dispatch:
jobs:
srm:
runs-on: ubuntu-latest
env:
BRIDGE_SRM_URL: ${{ vars.SRM_URL }}
BRIDGE_SRM_APIKEY: ${{ secrets.SRM_APIKEY }}
BRIDGE_SRM_ASSESSMENT_TYPES: 'SAST,SCA'
BRIDGE_SRM_PROJECT_NAME: ${{ github.event.repository.name }}
BRIDGE_SRM_BRANCH_NAME: ${{ github.ref_name }}
BRIDGE_SRM_BRANCH_PARENT: ${{ github.ref_name != github.event.repository.default_branch && github.event.repository.default_branch || '' }}
# INCLUDE_DIAGNOSTICS: 'true'
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: microsoft
cache: maven
- name: SRM Full Scan
run: |
curl -fLsS -o bridge.zip ${{ vars.BRIDGECLI_LINUX64 }} && unzip -qo -d ${{ runner.temp }} bridge.zip && rm -f bridge.zip
${{ runner.temp }}/bridge-cli-bundle-linux64/bridge-cli --stage srm
# - name: Save Logs
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: bridge-logs
# path: ${{ github.workspace }}/.bridge
# include-hidden-files: true