Skip to content

Commit

Permalink
test: fire action
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Zipitria <[email protected]>
  • Loading branch information
fzipi committed Mar 20, 2024
1 parent d2afa66 commit b16e891
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/redos-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: ReDOS Check

on: [push]

jobs:
check-redos:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: "Install crs-toolchain"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release download -R coreruleset/crs-toolchain -p '*_linux_amd64.tar.gz'
ls crs-toolchain*
tar xzf crs-toolchain*_linux_amd64.tar.gz
rm crs-toolchain*_linux_amd64.tar.gz
- name: "Generate compiled regex list"
run: |
mkdir compiled
for ra in regex-assembly/*.ra
do
name=$(basename $ra .ra)
./crs-toolchain regex generate $name > compiled/$name
done
- name: "Check that files are free from ReDOS"
id: redos-action
uses: fzipi/[email protected]
with:
files: compiled/*

- name: Print Output
id: output
run: echo "${{ steps.redos-action.outputs.status }}"

0 comments on commit b16e891

Please sign in to comment.