Skip to content

Commit 901c253

Browse files
committed
Changes related to compliance scan for Mend
1 parent 2040824 commit 901c253

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/mend.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ on:
1818
WS_APIKEY_NGINX:
1919
required: true
2020
inputs:
21-
branch:
22-
type: string
23-
required: true
24-
default: main
21+
product_name:
22+
type: string
23+
required: true
24+
project_name:
25+
required: true
26+
type: string
2527

2628
concurrency:
2729
group: ${{ github.ref_name }}-mend
@@ -37,8 +39,8 @@ jobs:
3739
steps:
3840
- name: Checkout Repository
3941
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40-
with:
41-
ref: ${{ inputs.branch && inputs.branch || github.ref }}
42+
# with:
43+
# ref: ${{ inputs.branch && inputs.branch || github.ref }}
4244

4345
- name: Download agent
4446
run: curl -fsSLJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar
@@ -49,10 +51,10 @@ jobs:
4951
- name: Scan and upload
5052
env:
5153
WS_URL: "https://f5.whitesourcesoftware.com/agent"
52-
WS_APIKEY_NGINX: ${{ secrets.WS_APIKEY_NGINX }}
53-
PRODUCT_NAME: nginx-tiger-demo1_${{ inputs.branch && inputs.branch || github.ref_name }}
54-
PROJECT_NAME: tiger-demo1
55-
WS_PROJECT: tiger-demo1
54+
WS_APIKEY_NGINX: ${{ inputs.WS_APIKEY_NGINX }}
55+
PRODUCT_NAME: ${{ inputs.product_name}}
56+
PROJECT_NAME: ${{ inputs.project_name}}
57+
5658
run: |
5759
if [ -z "$WS_APIKEY_NGINX" ]; then
5860
echo "Secret is empty"

0 commit comments

Comments
 (0)