File tree Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
- tags :
8
- - " v[0-9]+.[0-9]+.[0-9]+"
9
7
paths-ignore :
10
8
- docs/**
11
9
- examples/**
10
+ workflow_dispatch :
11
+ inputs :
12
+ branch :
13
+ type : string
14
+ required : false
15
+ default : main
16
+ workflow_call :
17
+ inputs :
18
+ branch :
19
+ type : string
20
+ required : true
12
21
13
22
concurrency :
14
23
group : ${{ github.ref_name }}-mend
@@ -21,10 +30,11 @@ jobs:
21
30
scan :
22
31
name : Mend
23
32
runs-on : ubuntu-22.04
24
- if : ${{ github.event.repository.fork == false }}
25
33
steps :
26
34
- name : Checkout Repository
27
35
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
36
+ with :
37
+ ref : ${{ inputs.branch && inputs.branch || github.ref }}
28
38
29
39
- name : Download agent
30
40
run : curl -fsSLJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar
34
44
35
45
- name : Scan and upload
36
46
env :
37
- PRODUCT_NAME : kubernetes-ingress-controller_${{ github.ref_name }}
47
+ PRODUCT_NAME : kubernetes-ingress-controller_${{ inputs.branch && inputs.branch || github.ref_name }}
38
48
PROJECT_NAME : nic
39
49
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 .
Original file line number Diff line number Diff line change @@ -124,6 +124,15 @@ jobs:
124
124
env :
125
125
GITHUB_TOKEN : ${{ secrets.NGINX_PAT }}
126
126
127
+ mend :
128
+ if : ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'mend') }}
129
+ name : Run Mend workflow
130
+ uses : ./.github/workflows/mend.yml
131
+ needs : [tag]
132
+ with :
133
+ branch : " v${{ inputs.nic_version }}"
134
+ secrets : inherit
135
+
127
136
release-oss :
128
137
if : ${{ ! cancelled() && ! failure() && ! contains(inputs.skip_step, 'release-oss') }}
129
138
name : Release Docker OSS
You can’t perform that action at this time.
0 commit comments