Thank you for your interest in the OWASP Cheat Sheet Series! This guide covers how to contribute including the process, project rules, and policies. For guidance on how to write good cheat sheet content, see the Cheat Sheet Writing Guide.
When contributing:
- Follow our Code of Conduct.
- Follow our restrictions on the use of AI for all issues, pull requests, comments and discussions.
For typos, broken links, or small corrections to existing cheat sheets, a simple pull request is all that's needed. No issue required.
- Create a new issue using the update_cheatsheet_proposal template.
- Wait for the issue to be discussed and approved.
- Fork and clone this repository.
- Make your changes to the target cheat sheet.
- Submit your Pull Request.
- Create a new issue using the new_cheatsheet_proposal template.
- Wait for the issue to be discussed and approved.
- Fork and clone this repository.
- Create your cheat sheet using the template. See the Cheat Sheet Writing Guide for help with content and structure.
- Submit your Pull Request.
- ❗ Focus on updating a single file in a Pull Request to make the review process simpler for the core team.
⚠️ Pull Requests marked as WAITING_UPDATE that do not receive any updates from the author in one month will be closed.⚠️ If the assignees of an issue do not provide a Pull Request within one month then the issue will go back to the HELP_WANTED state and assignees will be removed.- Verify that the CI checks applied on your Pull Request pass. If you believe they're failing due to something that's not your fault (such as another untouched file), add a comment in the Pull Request.
Check for workflow runs still awaiting approval, including runs on older commits and duplicate runs on the current commit:
npm run check-pr-approvals -- 2402 --repo OWASP/CheatSheetSeriesReplace 2402 with the pull request number. This read-only audit exits nonzero while approval holds remain; --head SHA also checks that the reviewed commit is still current. Run it after the final push and PR description edit, then verify the final commit's CI checks separately. Passing current checks does not clear older approval requests.
Unapproved fork workflow runs can expire as failures. In PR #2402, old holds expired at merge and sent misleading failure notifications despite the final checks passing. GitHub reports these holds as completed with conclusion action_required; its cancellation API rejects them until they are approved and queued.
Inspect each held revision, including its workflows and executable files, before approving it. For an obsolete run that is safe to execute, approve it, wait for it to queue, cancel it, and verify that it has finished. A run that finishes successfully before cancellation needs no further action. Keep unreviewed code awaiting approval and report that the audit is blocked. Preserve the fork approval policy and historical failure records. Rerun the audit immediately before merging or closing.
- Use the markdown syntax described in this guide, using python-markdown so check if what you need is supported.
- Use
**bold**syntax for bold text. - Lists and nested lists should use
-strictly. - Avoid the use of HTML in the cheat sheets (stick to pure Markdown).
- Quotes from other articles should use quote syntax:
> Quote here - If you use
{{or}}pattern in code fencing then add a space between both curly braces (ex:{ {). - Cheat Sheet filenames should only contain letters, numbers, hyphens and underscores.
- Store all assets in the assets folder and use the following syntax:
for images (which should be in the PNG format).[ALTERNATE_NAME](../assets/ASSET_NAME.EXT)for other types of files.
- Use this site for generation of tables.
- Links should be inline with a useful description, such as
[Description](https://example.org).- Always use HTTPS links where possible
- Code snippets should be short and should be appropriately marked to provide syntax highlighting:
```php
<?php
echo "Example code";
```The intended audience of the cheat sheets is developers, not security experts. As such, do not assume that the person reading the cheat sheet has a strong understanding of security topics. In depth or academic discussions are generally not appropriate in cheat sheets, and should be linked to as external references where appropriate.
The purpose of the cheat sheets is to provide useful, practical advice that can be followed by developers. It is much better to give good practices that can actually be followed than best practices that are completely impractical.
Prefer architectural guidance over code samples. Cheat sheets should focus on architectural patterns, design principles, and security decisions rather than language-specific code. Code samples require ongoing maintenance across languages and frameworks, and snippets taken out of context are often not fully secure. Describing what to do and why is more durable and broadly useful than showing how in a single language. When code examples are included, they should be short, clearly illustrative, and not presented as production-ready implementations.
When submitting changes in a PR, consider the following areas:
- The content should be useful to developers.
- The content should be factual and correct.
- Statements should be supported by authoritative references where possible.
- Recommendations should be feasible for the majority of developers to implement.
- Guidance should be architectural and language-agnostic where possible, with code samples used sparingly to illustrate a point.
For detailed guidance on writing effective cheat sheet content, including structure and approach, see the Cheat Sheet Writing Guide.
- Start with a H1 of the cheat sheet name
- The first section of the cheat sheet should be an introduction which briefly sums up the contents, and provides a short list of key bullet points.
- The table of contents will be automatically generated on the site, so does not need to be added as a section.
- Headings should have a blank line after them.
- End every cheat sheet with the exact heading
## References, usually listing 2–3 key authoritative primary sources, such as standards bodies, government publications, or official technical documentation. Exclude blogs, marketing pages, and generic resource lists. Additional authoritative inline citations are welcome; the final list may repeat key sources cited inline. Keep links selective without removing necessary claim support.
- Use US English.
- Spell check before submitting a PR.
- Try and keep the language relatively simple to make it easier for non-native speakers.
- Define any non-ubiquitous acronyms when they are first used.
- This is not necessary for extremely common acronyms such as "HTTP" or "URL".
Follow these steps:
- Install Visual Studio Code (VSCode).
- Install the vscode-markdownlint plugin.
- Open the file Project.code-workspace from VSCode via the menu
File > Open Workspace.... - You are ready to contribute 👍
⏰ What to verify before pushing the updates?
- Ensure that the markdown files you have created or modified do not have any warnings/errors raised by the linter. You can see it in this bottom bar when the markdown file is opened in VSCode:
- Ensure that the links you have added or changed work, and that each source supports the claim it is cited for. The link checker can only show the first.
- Install NodeJS and Python 3.
- Install the locked dependencies with
npm ci --ignore-scriptsand the site's Markdown renderer withpython3 -m pip install -r scripts/link_check/requirements.txt. If the renderer is in a virtual environment, activate it or setLINK_CHECK_PYTHONto its interpreter. - From the repository root, check the links your branch adds:
npm run link-check -- --base origin/masterThe checker has three modes:
--base <git-ref>(used for pull requests): checks external links that were added since the merge base with<git-ref>, including a second citation of a URL that is already cited elsewhere. Local links and anchors are checked across the whole site, and the check fails only for local links that the change broke, including links in other files to a heading you renamed or a file you removed.- No options (weekly and manual CI audits): checks every link in the published cheat sheets. Existing broken links make it fail; they are maintenance work, not a problem with your pull request.
--local-only: checks only local links and anchors. Add--freshto any mode to ignore cached successes.
Local anchors are checked against the heading IDs the site actually generates (Python-Markdown), which differ from GitHub's: ## Rule #2 - Set a user becomes #rule-2-set-a-user, not #rule-2---set-a-user.
Each link gets one of these results:
- Broken (blocks the check): a missing local file or anchor, a malformed link, or an external page that answered 404 or 410 to two separate GET requests.
- Unverified (does not block): the checker could not prove the link healthy or broken, for example 401/403 access restrictions, 429 rate limits, server errors, timeouts, an anchor that is not in the page's static HTML, or a site that answers every route with its home page and a 404 status. New unverified links are listed under Manual verification requested; open each one in a browser.
- Incomplete (blocks the check): a checker error, invalid configuration, or links left unchecked when the time budget ran out. Nothing should be treated as checked.
Results are written to .link-check/results.json (every link occurrence, page, request, and observation) and .link-check/report.md. CI shows the report in the job summary and saves both files in the link-check-diagnostics artifact. Successful external checks are cached for up to 24 hours in .link-check-cache/; failures are never cached. In CI, only default-branch audits save success caches. Same-repository PRs may restore those trusted caches read-only; fork PRs neither restore nor save them.
Maintainers can suppress a reviewed, still-failing link in link-check-exceptions.json. Each entry names the exact file and url, the expected result category (as shown in the report), a reason, reviewedOn and expiresOn dates at most 366 days apart, and an https reference to the review, such as an issue or pull request comment. An exception stops applying when it expires or when the link starts failing in a different way, and it never covers a newly added occurrence. The report lists expired, changed, recovered, and removed exceptions so they can be renewed or deleted. Do not add domain-wide exclusions or copy failures into the file without reviewing them. link-check-known-failures.json holds the observations recorded by the previous checker; it is kept as historical evidence only and does not suppress anything.
The Cheat Sheet Series is a documentation project, and so the content must be accurate, informative and concise.
The use of AI in the Cheat Sheet project can be useful for summarizing content, providing suggestions for improvements and code examples. There are also downsides to using AI when it is used to generate content and pull requests for the Cheat Sheets.
Depending on the prompts used, generative AI can produce content that is generalized and verbose; therefore review all output carefully before considering it for issues, pull requests, comments and discussions. If it is genuinely helpful to use generative AI then it must be declared in any pull request, failure to do so can result in the contribution being closed or deleted.
Templates for all issues and pull requests must be used, otherwise it suggests that they have been generated by AI without taking this contributing guidance into account. Remember that the project maintainers' time is limited, so if a contribution reads like AI-slop then the issue may get closed or the pull request discarded.
