Skip to content

Commit

Permalink
chore: fix lychee settings (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
theseion authored Nov 10, 2024
1 parent d420121 commit 9dbcd9c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ jobs:
id: lychee
uses: lycheeverse/lychee-action@22134d37a1fff6c2974df9c92a7c7e1e86a08f9c # for v1.9.0
with:
args: --no-progress -u "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0" -E './content/**/*.md'
args: "--cookie-jar /tmp/lychee-cookies './content/**/*.md'"
jobSummary: true
2 changes: 1 addition & 1 deletion content/development/contribution_guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ Rule tests also provide an excellent way to test WAF engines and implementations

The rule tests are located under `tests/regression/tests`. Each CRS rule *file* has a corresponding *directory* and each individual *rule* has a corresponding *YAML file* containing all the tests for that rule. For example, the tests for rule 911100 *(Method is not allowed by policy)* are in the file `REQUEST-911-METHOD-ENFORCEMENT/911100.yaml`.

Full documentation of the required formatting and available options of the YAML tests can be found at https://github.com/coreruleset/ftw-tests-schema/blob/main/spec/v2.0/ftw.md.
Full documentation of the required formatting and available options of the YAML tests can be found at https://github.com/coreruleset/ftw-tests-schema/blob/main/spec.

### Positive Tests

Expand Down
2 changes: 1 addition & 1 deletion content/rules/ruleid.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ of IDs for you thank you.
| 420,000-429,999 | reserved for ScallyWhack |
| 430,000--439,999 | reserved for rules published by Flameeye |
| 440,000-599,999 | unused **(available for reservation)** |
| 600,000-699,999 | reserved for [use by Akamai](https://www.akamai.com/products/web-application-protector) |
| 600,000-699,999 | reserved for [use by Akamai](https://www.akamai.com/products/app-and-api-protector) |
| 700,000-799,999 | reserved for Ivan Ristic |
| 900,000-999,999 | reserved for the OWASP CRS project |
| 1,000,000-1,009,999 | reserved for rules published by Redhat Security Team |
Expand Down
10 changes: 7 additions & 3 deletions lychee.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
exclude = ["github.com/coreruleset.*/SECURITY.md", "github.com/coreruleset.*/.github/.*"]
user-agent = "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0"
no-progress = true
exclude = ["github.com/coreruleset/coreruleset/blob/?$", "https://www.akamai.com/products/app-and-api-protector"]
user_agent = "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0"
no_progress = true
cache = true
verbose = "debug"
accept = "200..=204, 429"
exclude_all_private = true

0 comments on commit 9dbcd9c

Please sign in to comment.