Add test code #1
Workflow file for this run
This file contains 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: 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}" |