-
-
Notifications
You must be signed in to change notification settings - Fork 0
ci: clean up publish and docs deploy workflows #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
99c4e4e
5805b4b
8f4c0f3
d76e585
b316904
13f665f
a52cd7e
8603fbd
699ea2d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,14 +7,14 @@ cli: | |
| plugins: | ||
| sources: | ||
| - id: trunk | ||
| ref: v1.7.6 | ||
| ref: v1.10.0 | ||
| uri: https://github.com/trunk-io/plugins | ||
| # Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes) | ||
| runtimes: | ||
| enabled: | ||
| - go@1.21.0 | ||
| - node@22.16.0 | ||
| - python@3.10.8 | ||
| - python@3.14.4 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: As of June 2, 2026, Checkov officially supports Python versions 3.9 through 3.13, inclusive [1][2]. The project maintains this support by following the official Python release cycle and conducting automated tests across these supported versions [1][2]. Regarding Trunk, it does not rely on a user-provided or local Python installation for its managed linters [3]. Instead, Trunk manages the runtimes required for its tools—including Checkov—automatically [3]. When you configure runtimes in your repository's.trunk/trunk.yaml file, such as under runtimes.enabled, you are specifying the versions Trunk should use to run those tools [3][4]. Trunk caches these linters, formatters, and their respective runtime environments (e.g., specific Python versions) in ~/.cache/trunk, ensuring that the tool execution is isolated and consistent across different environments regardless of what is installed on the host machine [3]. Citations:
Pin Trunk’s Python runtime to a Checkov-supported version (≤3.13) In 🤖 Prompt for AI Agents |
||
| # This is the section where you manage your linters. (https://docs.trunk.io/check/configuration) | ||
| lint: | ||
| ignore: | ||
|
|
@@ -27,17 +27,18 @@ lint: | |
| paths: | ||
| - '**/pnpm-lock.yaml' | ||
| enabled: | ||
| - grype@0.112.0 | ||
| - shellcheck@0.11.0 | ||
| - shfmt@3.6.0 | ||
| - actionlint@1.7.11 | ||
| - checkov@3.2.510 | ||
| - eslint@10.1.0 | ||
| - actionlint@1.7.12 | ||
| - checkov@3.2.532 | ||
| - eslint@10.4.1 | ||
| - git-diff-check | ||
| - markdownlint@0.48.0 | ||
| - osv-scanner@2.3.3 | ||
| - prettier@3.8.1 | ||
| - osv-scanner@2.3.8 | ||
| - prettier@3.8.3 | ||
| - svgo@4.0.1 | ||
| - trufflehog@3.94.0 | ||
| - trufflehog@3.95.5 | ||
| - yamllint@1.38.0 | ||
| actions: | ||
| disabled: | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -107,7 +107,14 @@ async function updateExamplesPageTs(examples) { | |||||
| // Find the examples object in the file and replace it | ||||||
| // More robust regex that matches the entire examples object declaration | ||||||
| const examplesObjectRegex = /const examples\s*=\s*\{[\s\S]*?\n\s*\}(?=\s*\n\s*return)/ | ||||||
| const newExamplesObject = `const examples = ${JSON.stringify(examples, null, 4).replace(/^/gm, ' ').trim()}` | ||||||
| // Format as JS object literal with single quotes and unquoted keys (matching prettier config) | ||||||
| const jsObject = JSON.stringify(examples, null, 4) | ||||||
| .replace(/"([^"]+)":/g, (_, key) => | ||||||
| /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key) ? `${key}:` : `'${key}':` | ||||||
| ) | ||||||
| .replace(/: "([^"]*)"/g, (_, value) => `: '${value}'`) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Escape single quotes when converting values to single-quoted strings. Converting 🐛 Proposed fix to escape inner single quotes- .replace(/: "([^"]*)"/g, (_, value) => `: '${value}'`)
+ .replace(/: "([^"]*)"/g, (_, value) => `: '${value.replace(/'/g, "\\'")}'`)📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| .replace(/: null/g, ': null') | ||||||
| const newExamplesObject = `const examples = ${jsObject.replace(/^/gm, ' ').trim()}` | ||||||
|
|
||||||
| if (examplesObjectRegex.test(content)) { | ||||||
| content = content.replace(examplesObjectRegex, newExamplesObject) | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.