Skip to content

Commit 8fb7e60

Browse files
committed
feat: add Mend CLI scan workflow
1 parent 8a02df1 commit 8fb7e60

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/mend.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Mend CLI Scan
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
image:
7+
description: 'Image to scan'
8+
required: true
9+
default: 'docker.io/vespaengine/vespa:8'
10+
11+
env:
12+
IMAGE: ${{ inputs.image }}
13+
14+
jobs:
15+
mend:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Downloading Mend CLI
20+
run: |
21+
echo Downloading Mend CLI
22+
curl https://downloads.mend.io/cli/linux_amd64/mend -o /usr/local/bin/mend && chmod +x /usr/local/bin/mend
23+
24+
- name: Mend CLI Scan
25+
env:
26+
MEND_EMAIL: ${{secrets.MEND_EMAIL}}
27+
MEND_USER_KEY: ${{secrets.MEND_USER_KEY}}
28+
MEND_URL: https://saas-eu.mend.io
29+
run: |
30+
mend image "$IMAGE"

0 commit comments

Comments
 (0)