Skip to content

Commit deb309c

Browse files
committed
add cve check workflow
1 parent 9aa2f78 commit deb309c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: SOUP - CVE Check
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
type:
6+
description: 'Type of package manager'
7+
required: true
8+
type: choice
9+
options: ['Pub', 'npm']
10+
package:
11+
description: 'Name of the package'
12+
required: true
13+
type: string
14+
version:
15+
description: 'Version of the package to include'
16+
required: true
17+
type: string
18+
19+
jobs:
20+
check-cves:
21+
env:
22+
GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }}
23+
runs-on: [self-hosted, Linux]
24+
steps:
25+
- uses: QuickBirdEng/actions/checkout-ssh@main
26+
with:
27+
ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }}
28+
- name: JQ Version
29+
shell: bash
30+
run: jq --version
31+
- name: Check CVE
32+
shell: bash
33+
run: bash cve-check.sh "${{ inputs.type }}" "${{ inputs.package }}" "${{ inputs.version }}" false

0 commit comments

Comments
 (0)