-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsrm-bridge-cli-win64.yml
More file actions
38 lines (38 loc) · 1.25 KB
/
srm-bridge-cli-win64.yml
File metadata and controls
38 lines (38 loc) · 1.25 KB
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
# example workflow for SRM scans using the Bridge CLI
name: srm-bridge-cli-win64
on:
push:
branches: [ main, master, develop, stage, release ]
workflow_dispatch:
jobs:
srm:
runs-on: [self-hosted, windows]
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.event.ref_name }}
# 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: |
Invoke-WebRequest -Uri ${{ vars.BRIDGECLI_WIN64 }} -OutFile bridge.zip
Expand-Archive -Path bridge.zip -DestinationPath ${{ runner.temp }} -Force
Remove-Item -Path bridge.zip -Force
${{ runner.temp }}/bridge-cli-bundle-win64/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