diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml index fe885ac..79a3f0d 100644 --- a/.github/linters/.markdown-lint.yml +++ b/.github/linters/.markdown-lint.yml @@ -7,7 +7,7 @@ MD004: MD005: indent: 2 -MD007: 2 +MD007: false MD013: code_blocks: false @@ -17,7 +17,9 @@ MD013: # MD025/single-title/single-h1 Multiple top-level headings in the same document MD025: false -MD029: one +MD028: false + +MD029: false MD033: false @@ -25,6 +27,8 @@ MD034: false MD035: consistent +MD040: false + # MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading MD041: false diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc0a947..309e30a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,7 +35,7 @@ repos: files: ^requirements\.txt$ - id: trailing-whitespace args: [--markdown-linebreak-ext=md] - exclude: \.svg$ + exclude: (\.svg$) - repo: https://github.com/igorshubovych/markdownlint-cli rev: v0.46.0 hooks: diff --git a/content/highlight/github.min.css b/content/highlight/github.min.css index 275239a..96af284 100644 --- a/content/highlight/github.min.css +++ b/content/highlight/github.min.css @@ -7,4 +7,4 @@ pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5p Outdated base version: https://github.com/primer/github-syntax-light Current colors taken from GitHub's CSS -*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#005cc5}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-code,.hljs-comment,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0} \ No newline at end of file +*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#005cc5}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-code,.hljs-comment,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0} diff --git a/content/highlight/highlight.min.js b/content/highlight/highlight.min.js index 5d699ae..483a659 100644 --- a/content/highlight/highlight.min.js +++ b/content/highlight/highlight.min.js @@ -1210,4 +1210,4 @@ begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0 aliases:["yml"],contains:l}}});const He=ae;for(const e of Object.keys(Ke)){ const n=e.replace("grmr_","").replace("_","-");He.registerLanguage(n,Ke[e])} return He}() -;"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs); \ No newline at end of file +;"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs); diff --git a/content/pages/draft-asf-token-standard.md b/content/pages/draft-asf-token-standard.md index 652ac44..f1dea38 100644 --- a/content/pages/draft-asf-token-standard.md +++ b/content/pages/draft-asf-token-standard.md @@ -112,4 +112,4 @@ These values must not be used in any application. The `sample` component will be ## Detection guidance -To detect tokens, the regular expression presented in the Syntax section above can be used alone, without anchoring, as a heuristic with a high probability of matches. For better prevention of false positives in detection, the suffix matching the CRC-32 can be validated. Components can also be validated against the list maintained by Security. \ No newline at end of file +To detect tokens, the regular expression presented in the Syntax section above can be used alone, without anchoring, as a heuristic with a high probability of matches. For better prevention of false positives in detection, the suffix matching the CRC-32 can be validated. Components can also be validated against the list maintained by Security. diff --git a/content/pages/policies.md b/content/pages/policies.md index 481784f..89e3cb5 100644 --- a/content/pages/policies.md +++ b/content/pages/policies.md @@ -3,5 +3,7 @@ license: https://www.apache.org/licenses/LICENSE-2.0 We will list various proposed policies and policy changes. These will be speculative until approved. +## Security policies + 1. [ASF standard for scannable secret tokens](./draft-asf-token-standard) - [FAQ](./draft-asf-token-standard-faq) diff --git a/requirements.txt b/requirements.txt index fd7a77e..7d60431 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ beautifulsoup4 Markdown pelican +pre-commit requests