Skip to content

Commit

Permalink
ci: add plugin config variable
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Zipitria <[email protected]>
  • Loading branch information
fzipi committed Oct 23, 2022
1 parent a2fdd2a commit 6c1ed62
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ on: [push, pull_request] # yamllint disable-line rule:truthy
jobs:
plugin-lint:
uses: coreruleset/crs-plugin-test-action/.github/workflows/integration.yaml@main
with:
plugin-config: |
SecRule &TX:phpmyadmin-rule-exclusions-plugin_enabled "@eq 0" \
"id:9513010,\
phase:1,\
pass,\
nolog,\
setvar:'tx.phpmyadmin-rule-exclusions-plugin_enabled=1'"
5 changes: 2 additions & 3 deletions tests/regression/phpmyadmin-plugin/9507120.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ meta:
name: 9513370.yaml
tests:
- test_title: 9513370-1
desc: Check FPs Zoom Search
desc: Check FPs Zoom Search
stages:
- stage:
input:
dest_addr: 127.0.0.1
headers:
Host: localhost
User-Agent: OWASP ModSecurity Core Rule Set
#Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept: */*
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Cookie: phpMyAdmin=1
port: 80
method: POST
Expand Down

0 comments on commit 6c1ed62

Please sign in to comment.