v1.0.X-integration #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 playground/intercept | |
- name: Run your analysis tool | |
run: | | |
cd playground/ | |
./intercept audit --policy policies/nginx_insecure.yaml --target 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 }} |