-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (55 loc) · 1.72 KB
/
full-loop.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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: full-loop
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [main]
jobs:
full-loop:
name: full-loop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./
name: Run action on full security-action repo
id: action
with:
debug: true
github_token: ${{ secrets.GITHUB_TOKEN }}
baseline_scan_only: false
- run: |
echo ${{ steps.action.outputs.reviewdog-findings }}
if [[ "${{ steps.action.outputs.reviewdog-findings }}" -lt "70" ]]; then
echo "Too few reviewdog findings"
exit 1
fi
if [[ "${{ steps.action.outputs.safesvg-count }}" -lt "1" ]]; then
echo "Too few safesvg findings"
exit 1
fi
if [[ "${{ steps.action.outputs.tfsec-count }}" -lt "2" ]]; then
echo "Too few tfsec findings"
exit 1
fi
if [[ "${{ steps.action.outputs.semgrep-count }}" -lt "50" ]]; then
echo "Too few semgrep findings"
exit 1
fi
if [[ "${{ steps.action.outputs.sveltegrep-count }}" -lt "4" ]]; then
echo "Too few sveltegrep findings"
exit 1
fi
if [[ "${{ steps.action.outputs.npm-audit-count }}" -lt "1" ]]; then
echo "Too few npm-audit findings"
exit 1
fi
if [[ "${{ steps.action.outputs.pip-audit-count }}" -lt "1" ]]; then
echo "Too few pip-audit findings"
exit 1
fi
shell: bash
name: Check number of findings