Skip to content

Normalize OWASP cheat sheet references#954

Open
Bornunique911 wants to merge 1 commit into
OWASP:mainfrom
Bornunique911:review/issue-471-cheatsheet-references-clean
Open

Normalize OWASP cheat sheet references#954
Bornunique911 wants to merge 1 commit into
OWASP:mainfrom
Bornunique911:review/issue-471-cheatsheet-references-clean

Conversation

@Bornunique911

@Bornunique911 Bornunique911 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR is split out from the larger issue-471 review flow to make review smaller and more focused.

It normalizes OWASP cheat sheet references by:

  • using official OWASP Cheat Sheet Series links
  • adding supplemental cheat sheet mappings for references that are not reliably discoverable from repository parsing alone
  • covering that behavior with focused parser tests

Issue reference:

Problem Fixed

The earlier cheat sheet references review became too large because it was mixed with unrelated importer-stack work.

For this part of the work, the useful standalone contribution is:

  • using official cheat sheet URLs
  • supplementing missing cheat sheet references with explicit mapping data
  • ensuring parser behavior remains test-covered

Solution

This PR updates the cheat sheet parser to:

  • tolerate repository clone failure and continue with supplemental cheat sheet mappings
  • load supplemental cheat sheet mapping data from JSON
  • deduplicate cheat sheet entries by section and hyperlink
  • keep official OWASP Cheat Sheet Series hyperlinks for normalized references

This PR also adds:

  • supplemental cheat sheet mapping data
  • focused parser test coverage for the supplemental references

Files in scope:

  • application/utils/external_project_parsers/parsers/cheatsheets_parser.py
  • application/utils/external_project_parsers/data/owasp_cheatsheets_supplement.json
  • application/tests/cheatsheets_parser_test.py

Tests

./venv/bin/python -m pytest application/tests/cheatsheets_parser_test.py -q

Reviewer Notes

This PR is intentionally narrow because it was split to reduce review size:

  • no frontend changes
  • no unrelated OWASP importer modules
  • no refresh script aggregation
  • no bundle artifacts

This PR is meant to be reviewed as a standalone cheat sheet reference normalization change.

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@Bornunique911, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 15 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: e9ad2807-f181-4c90-8d15-894b99cc8ce8

📥 Commits

Reviewing files that changed from the base of the PR and between 0e16c2e and aac9e3b.

📒 Files selected for processing (3)
  • application/tests/cheatsheets_parser_test.py
  • application/utils/external_project_parsers/data/owasp_cheatsheets_supplement.json
  • application/utils/external_project_parsers/parsers/cheatsheets_parser.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Bornunique911 Bornunique911 force-pushed the review/issue-471-cheatsheet-references-clean branch from 7f640f4 to aac9e3b Compare July 7, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant