-
-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (36 loc) · 1.07 KB
/
intercept.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
name: "Intercept Mock Code Scanning - Integration"
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to scan'
required: true
default: 'master'
push:
branches: [ master, integration/github ]
pull_request:
branches: [ master, integration/github ]
schedule:
- cron: '0 0 * * 0'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: compile intercept
run: |
make build && cp release/intercept .
- name: Run intercept tool
run: |
./intercept audit --policy playground/policies/nginx_insecure.yaml --target playground/targets/ -vvvv
- name: Find SARIF file
id: find-sarif
run: |
SARIF_FILE=$(find . -type f -regex ".*intercept_[a-zA-Z0-9]+\.sarif\.json" -print -quit)
echo "SARIF_FILE=${SARIF_FILE}" >> $GITHUB_OUTPUT
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.find-sarif.outputs.SARIF_FILE }}