-
Notifications
You must be signed in to change notification settings - Fork 22
39 lines (31 loc) · 1.01 KB
/
unit-tests.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
name: Unit Tests with hyperscan
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout custom patterns
uses: actions/checkout@v4
- name: Checkout secret-scanning-tools
uses: actions/checkout@v4
with:
repository: "advanced-security/secret-scanning-tools"
path: "secret-scanning-tools"
- name: Install dependencies
run: |
cd "${GITHUB_WORKSPACE}"/secret-scanning-tools/secretscanning
sudo apt-get -qq update
sudo apt-get -qq install libpcre3-dev
python3 -mpip -q install -r requirements.txt
python3 -mpip -q install tqdm
- name: Unit Test patterns with hyperscan
run: |
cd "${GITHUB_WORKSPACE}"/secret-scanning-tools/secretscanning
python3 ./test.py --tests "${GITHUB_WORKSPACE}" --exclude django_secret_key