-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
43 lines (40 loc) · 1.03 KB
/
action.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: github-security-gate
description: Simple and pratical security gate for Github Security Alerts
author: LESIS
branding:
icon: "shield"
color: "blue"
inputs:
max_critical:
description: 'Critical severity limit'
required: false
default: 1
max_high:
description: 'High severity limit'
required: false
default: 1
max_medium:
description: 'Medium severity limit'
required: false
max_low:
description: 'Low severity limit'
required: false
default: 1
runs:
using: "composite"
steps:
- shell: bash
env:
CRITICAL: ${{ inputs.max_critical }}
HIGH: ${{ inputs.max_high }}
MEDIUM: ${{ inputs.max_medium }}
LOW: ${{ inputs.max_low }}
GITHUB_TOKEN: ${{ secrets.TOKEN }}
run: |
docker run ghcr.io/instriq/security-gate/security-gate:latest \
-t $GITHUB_TOKEN \
-r ${{ github.repository }} \
--critical $MAX_CRITICAL \
--high $MAX_HIGH \
--medium $MAX_MEDIUM \
--low $MAX_LOW