Skip to content

Add test code

Add test code #1

Workflow file for this run

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:
- uses: actions/checkout@v4
with:
repository: "advanced-security/secret-scanning-tools"
path: "secret-scanning-tools"
- name: Unit Test patterns with hyperscan
run: |
cd "${GITHUB_WORKSPACE}"/secret-scanning-tools/secretscanning
sudo apt-get -qq install libpcre3-dev
python3 -mpip install -r requirements.txt
python3 ./test.py --tests "${GITHUB_WORKSPACE}"