Skip to content

Commit

Permalink
Merge pull request #6 from coreruleset/add-ci-tests
Browse files Browse the repository at this point in the history
feat(ci): add crs lint github action
  • Loading branch information
fzipi authored Nov 25, 2022
2 parents 6e01e26 + 00ac8ec commit efb7d6e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
on: [push, pull_request] # yamllint disable-line rule:truthy

jobs:
integration-tests:
uses: coreruleset/crs-plugin-test-action/.github/workflows/integration.yaml@main
6 changes: 6 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
on: [push, pull_request] # yamllint disable-line rule:truthy

jobs:
plugin-lint:
uses: coreruleset/crs-plugin-test-action/.github/workflows/lint.yaml@main
24 changes: 24 additions & 0 deletions tests/regression/phpmyadmin-plugin/9513370.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
meta:
author: "Felipe Zipitria"
description: "Test PhpMyAdmin Plugin"
enabled: true
name: 9513370.yaml
tests:
- test_title: 9513370-1
desc: Check FPs Zoom Search - Targets the removed rule (942140)
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
Cookie: phpMyAdmin=1
port: 80
method: POST
uri: /post/tbl_zoom_select.php
data: db=mytestdb
output:
no_log_contains: id "942140"

0 comments on commit efb7d6e

Please sign in to comment.