Merge pull request #2551 from certtools/remove-prettyprint #1679
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
| #Github Workflow to find exploitable regular expressions | |
| #uses regexploit: https://github.com/doyensec/regexploit | |
| # | |
| #SPDX-FileCopyrightText: 2021 Sebastian Wagner | |
| #SPDX-License-Identifier: AGPL-3.0-or-later | |
| name: "Regular expression check" | |
| on: | |
| push: | |
| branches: [develop, maintenance, master] | |
| paths-ignore: | |
| - '.github/**' | |
| pull_request: | |
| branches: [develop, maintenance] | |
| paths-ignore: | |
| - '.github/**' | |
| jobs: | |
| regexploit: | |
| name: Find regular expressions which are vulnerable to ReDoS | |
| runs-on: ubuntu-latest | |
| # This should not fail the whole workflow run | |
| continue-on-error: true | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Install regexploit | |
| #run: pip install regexploit | |
| # See https://github.com/doyensec/regexploit/pull/16 | |
| run: pip install git+https://github.com/sebix/regexploit.git@unsupported-ops-yaml | |
| - name: Run regexploit | |
| run: /home/runner/work/intelmq/intelmq/.github/workflows/scripts/regexploit.sh |