mirror of
https://github.com/fabriziosalmi/patterns.git
synced 2025-12-18 18:25:43 +00:00
Update update_patterns.yml
This commit is contained in:
parent
1e2ac851f5
commit
07ff92bd1d
12
.github/workflows/update_patterns.yml
vendored
12
.github/workflows/update_patterns.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Update OWASP WAF Rules
|
name: Update Caddy WAF Rules
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
@ -46,6 +46,11 @@ jobs:
|
|||||||
python owasp2caddy.py
|
python owasp2caddy.py
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
|
|
||||||
|
- name: Convert OWASP to Nginx WAF
|
||||||
|
run: |
|
||||||
|
python owasp2nginx.py
|
||||||
|
continue-on-error: false
|
||||||
|
|
||||||
- name: Check for Changes
|
- name: Check for Changes
|
||||||
id: git-check
|
id: git-check
|
||||||
run: |
|
run: |
|
||||||
@ -56,8 +61,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git add waf_patterns/*.conf
|
git add waf_patterns/caddy/*.conf
|
||||||
git commit -m "Automated update: OWASP CRS to Caddy WAF rules [$(date)]"
|
git add waf_patterns/nginx/*.conf
|
||||||
|
git commit -m "Automated update: OWASP CRS to Caddy and NGinx WAF rules [$(date)]"
|
||||||
git push
|
git push
|
||||||
continue-on-error: true # Allow workflow to continue even if no changes
|
continue-on-error: true # Allow workflow to continue even if no changes
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user