-
-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (40 loc) · 1.13 KB
/
scan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Scan
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: INFO
schedule:
- cron: '0 0 * * *'
env:
API_URL: https://kamp.azurewebsites.net
ADMIN_USER: ${{ secrets.API_ADMIN_USER }}
ADMIN_PASSWORD: ${{ secrets.API_ADMIN_PASSWORD }}
IMAGE: docker.pkg.github.com/mpetuska/kamp/scanner:latest
LOG_LEVEL: ${{ github.event.inputs.logLevel }}
jobs:
scan:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
repository:
- 'mavenCentral'
options:
- '-i com'
- '-i org'
- '-e com -f a -t c'
- '-f d -t f'
- '-f g -t l'
- '-e org -f m -t p'
- '-f q -t t'
- '-f u -t z'
steps:
- uses: docker/[email protected]
with:
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ github.token }}
- run: docker run -a stderr -a stdout -e "LOG_LEVEL=${LOG_LEVEL:-INFO}" -e API_URL -e ADMIN_USER -e ADMIN_PASSWORD ${{ env.IMAGE }} ${{ matrix.repository }} ${{ matrix.options }}