Skip to content

Commit 496271f

Browse files
committed
use global secrets
1 parent a43f704 commit 496271f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/mend.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ on:
1414
required: true
1515
default: main
1616
workflow_call:
17-
secrets:
18-
WS_APIKEY_NGINX:
19-
required: true
20-
WS_USER_KEY:
21-
required: true
17+
2218
inputs:
2319
product_name:
2420
type: string
@@ -85,15 +81,15 @@ jobs:
8581
- name: Scan and upload
8682
env:
8783
WS_URL: "https://f5.whitesourcesoftware.com/agent"
88-
WS_APIKEY_NGINX: ${{ secrets.WS_APIKEY_NGINX }}
84+
WS_APIKEY_NGINX: ${{ secrets.WS_APIKEY_NGINX }}
85+
WS_USER_KEY: ${{ secrets.WS_USER_KEY }}
8986
PRODUCT_NAME: ${{ inputs.product_name}}
9087
PROJECT_NAME: ${{ inputs.project_name}}
9188
WS_CHECKPOLICIES: true
9289
WS_FORCECHECKALLDEPENDENCIES: true
9390
WS_GENERATESCANREPORT: true
9491
WS_FORCEUPDATE: true
9592
WS_FORCEUPDATE_FAILBUILDONPOLICYVIOLATION: true
96-
WS_USER_KEY: ${{ secrets.WS_USER_KEY }}
9793

9894
run: |
9995
if [ -z "$WS_APIKEY_NGINX" ] || [ -z "$WS_USER_KEY" ]; then

0 commit comments

Comments
 (0)