Skip to content

Commit b443cb1

Browse files
authored
Create scan_vulnerabilies.yml
1 parent bae6210 commit b443cb1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Scan for vulnerabilities
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize]
6+
workflow_dispatch:
7+
8+
jobs:
9+
scan_image:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: checkout repo content
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- run: ./gradlew clean assembleTarDistribution
17+
- run: mkdir scan
18+
- run: cd scan && tar -zxf ../build/logstash-*.tar.gz
19+
- name: Scan image
20+
uses: anchore/scan-action@v3
21+
with:
22+
path: "scan/*"
23+
fail-build: true
24+
severity-cutoff: critical

0 commit comments

Comments
 (0)