-
Notifications
You must be signed in to change notification settings - Fork 98
36 lines (32 loc) · 1.03 KB
/
mend.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
name: Mend
on:
push:
branches:
- main
paths-ignore:
- design/**
- deploy**
- docs/**
- examples/**
concurrency:
group: ${{ github.ref_name }}-mend
cancel-in-progress: true
permissions:
contents: read
jobs:
scan:
name: Mend
runs-on: ubuntu-22.04
if: ${{ github.event.repository.fork == false }}
steps:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Download agent
run: curl -LJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar
- name: Verify JAR
run: jarsigner -verify wss-unified-agent.jar
- name: Scan and upload
env:
PRODUCT_NAME: nginx-gateway-fabric_${{ github.ref_name }}
PROJECT_NAME: nginx-gateway-fabric
run: java -jar wss-unified-agent.jar -noConfig true -wss.url ${{ secrets.WSS_URL }} -apiKey ${{ secrets.WSS_NGINX_TOKEN }} -product $PRODUCT_NAME -project $PROJECT_NAME -d .