Skip to content

Commit

Permalink
chore(ci): synchronize to a66e450 (#1083)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored Sep 9, 2024
1 parent a043e4b commit 1aa6c12
Show file tree
Hide file tree
Showing 8 changed files with 156 additions and 88 deletions.
110 changes: 55 additions & 55 deletions Cargo.lock

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,29 @@ path = "codegen/src/lib.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "1.0.86"
biome_analyze = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_cli = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_configuration = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_console = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_css_analyze = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_css_parser = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_css_syntax = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_graphql_analyze = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_graphql_parser = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_graphql_syntax = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_diagnostics = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_js_analyze = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_js_formatter = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_js_parser = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_js_syntax = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_json_analyze = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_json_formatter = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_json_parser = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_json_syntax = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_rowan = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_service = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_text_edit = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_string_case = { git = "https://github.com/biomejs/biome.git", rev = "26e722c896c5d0ef975d58e987e7099afd521d9f" }
biome_analyze = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_cli = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_configuration = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_console = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_css_analyze = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_css_parser = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_css_syntax = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_graphql_analyze = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_graphql_parser = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_graphql_syntax = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_diagnostics = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_js_analyze = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_js_formatter = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_js_parser = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_js_syntax = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_json_analyze = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_json_formatter = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_json_parser = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_json_syntax = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_rowan = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_service = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_text_edit = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
biome_string_case = { git = "https://github.com/biomejs/biome.git", rev = "a66e450367922b5234ae9f829e3e77918dca40ea" }
bpaf = { version = "0.9.12", features = ["docgen"] }
# If you update this library, be aware of the breaking changes
pulldown-cmark = "0.10.3"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@astrojs/rss": "4.0.7",
"@astrojs/starlight": "0.26.1",
"@biomejs/biome": "1.8.3",
"@biomejs/wasm-web": "https://pkg.pr.new/biomejs/biome/@biomejs/wasm-web@26e722c",
"@biomejs/wasm-web": "https://pkg.pr.new/biomejs/biome/@biomejs/wasm-web@a66e450",
"@codemirror/lang-css": "6.2.1",
"@codemirror/lang-html": "6.4.9",
"@codemirror/lang-javascript": "6.2.2",
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/generated/NumberOfRules.astro

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/content/docs/linter/rules/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ Rules that detect code that is likely to be incorrect or useless.
| [noDuplicateCase](/linter/rules/no-duplicate-case) | Disallow duplicate case labels. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
| [noDuplicateClassMembers](/linter/rules/no-duplicate-class-members) | Disallow duplicate class members. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
| [noDuplicateJsxProps](/linter/rules/no-duplicate-jsx-props) | Prevents JSX properties to be assigned multiple times. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="JSX rule."><Icon name="seti:javascript" label="JSX rule" size="1.2rem"/></span> |
| [noDuplicateObjectKeys](/linter/rules/no-duplicate-object-keys) | Disallow two keys with the same name inside objects. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="JSON rule."><Icon name="seti:json" label="JSON rule" size="1.2rem"/></span> |
| [noDuplicateObjectKeys](/linter/rules/no-duplicate-object-keys) | Disallow two keys with the same name inside objects. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="The rule has an unsafe fix" ><Icon name="warning" label="The rule has an unsafe fix" size="1.2rem" /></span><span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
| [noDuplicateObjectKeys](/linter/rules/no-duplicate-object-keys) | Disallow two keys with the same name inside objects. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="JSON rule."><Icon name="seti:json" label="JSON rule" size="1.2rem"/></span> |
| [noDuplicateParameters](/linter/rules/no-duplicate-parameters) | Disallow duplicate function parameter name. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
| [noDuplicateTestHooks](/linter/rules/no-duplicate-test-hooks) | A block should not contain duplicate hooks. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
| [noEmptyBlockStatements](/linter/rules/no-empty-block-statements) | Disallow empty block statements and static blocks. | <span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
Expand Down
53 changes: 53 additions & 0 deletions src/content/docs/linter/rules/no-secrets.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
# Don't modify this file manually. This file is auto generated from source, and you will lose your changes next time the website is built.
# Head to the `biomejs/biome` repository, and modify the source code in there.

title: noSecrets
description: |
Disallow usage of sensitive data such as API keys and tokens.
---
import { Tabs, TabItem } from '@astrojs/starlight/components';

**Diagnostic Category: `lint/nursery/noSecrets`**
<Tabs>
<TabItem label="JavaScript (and super languages)" icon="seti:javascript">
**Since**: `vnext`
:::caution
This rule is part of the [nursery](/linter/rules/#nursery) group.
:::

Sources:
- Inspired from: <a href="https://eslint.org/docs/latest/rules/no-secrets/no-secrets" target="_blank"><code>no-secrets/no-secrets</code></a>

Disallow usage of sensitive data such as API keys and tokens.

This rule checks for high-entropy strings and matches common patterns
for secrets, such as AWS keys, Slack tokens, and private keys.

While this rule is helpful, it's not infallible. Always review your code carefully and consider implementing additional security measures like automated secret scanning in your CI/CD and git pipeline, such as GitGuardian or GitHub protections.

## Examples

### Invalid

```js
const secret = "AKIA1234567890EXAMPLE";
```

<pre class="language-text"><code class="language-text">code-block.js:1:16 <a href="https://biomejs.dev/linter/rules/no-secrets">lint/nursery/noSecrets</a> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br /><br /> <strong><span style="color: Orange;">⚠</span></strong> <span style="color: Orange;">Potential secret found.</span><br /> <br /> <strong><span style="color: Tomato;">&gt;</span></strong> <strong>1 │ </strong>const secret = &quot;AKIA1234567890EXAMPLE&quot;;<br /> <strong> │ </strong> <strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><strong><span style="color: Tomato;">^</span></strong><br /> <strong>2 │ </strong><br /> <br /> <strong><span style="color: lightgreen;">ℹ</span></strong> <span style="color: lightgreen;">Type of secret detected: AWS API Key</span><br /> <br /> <strong><span style="color: lightgreen;">ℹ</span></strong> <span style="color: lightgreen;">Storing secrets in source code is a security risk. Consider the following steps:<br /></span> <span style="color: lightgreen;">1. Remove the secret from your code. If you've already committed it, consider removing the commit entirely from your git tree.<br /></span> <span style="color: lightgreen;">2. If needed, use environment variables or a secure secret management system to store sensitive data.<br /></span> <span style="color: lightgreen;">3. If this is a false positive, consider adding an inline disable comment.</span><br /> <br /></code></pre>

### Valid

```js
const nonSecret = "hello world";
```

## Related links

- [Disable a rule](/linter/#disable-a-lint-rule)
- [Configure the rule fix](/linter#configure-the-rule-fix)
- [Rule options](/linter/#rule-options)

</TabItem>
</Tabs>

17 changes: 16 additions & 1 deletion src/pages/metadata/rules.json.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1aa6c12

Please sign in to comment.