Skip to content

Commit 9cd3fd2

Browse files
authored
Reference main mend job (#7834)
1 parent 5796ba9 commit 9cd3fd2

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

.github/workflows/mend.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,9 @@ permissions:
2929
jobs:
3030
scan:
3131
name: Mend
32-
runs-on: ubuntu-22.04
33-
steps:
34-
- name: Checkout Repository
35-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36-
with:
37-
ref: ${{ inputs.branch && inputs.branch || github.ref }}
38-
39-
- name: Download agent
40-
run: curl -fsSLJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar
41-
42-
- name: Verify JAR
43-
run: jarsigner -verify wss-unified-agent.jar
44-
45-
- name: Scan and upload
46-
env:
47-
PRODUCT_NAME: kubernetes-ingress-controller_${{ inputs.branch && inputs.branch || github.ref_name }}
48-
PROJECT_NAME: nic
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 .
32+
if: ${{ github.event.repository.fork == false }}
33+
uses: nginxinc/compliance-rules/.github/workflows/mend.yml@c903bfe6c668eaba362cde6a7882278bc1564401 # v0.1
34+
secrets: inherit
35+
with:
36+
product_name: kubernetes-ingress-controller_${{ inputs.branch && inputs.branch || github.ref_name }}
37+
project_name: nic

0 commit comments

Comments
 (0)