mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
9543b3c9f6
* core: add .npmrc baseline to block dependency lifecycle scripts Set ignore-scripts=true at the repo root, plus engine-strict, save-exact, audit, and prefer-offline. This neutralizes the dominant npm supply-chain attack vector — postinstall scripts in transitive dependencies — at the cost of requiring an explicit rebuild for the handful of packages that legitimately need install scripts (esbuild, chromedriver, tree-sitter, tree-sitter-json). The next commit wires that rebuild into the Makefile. Co-Authored-By: Playpen Agent <279763771+playpen-agent@users.noreply.github.com> * core: route node installs through make to retire website preinstall hook Make docs-install depend on a new root-node-install so the root deps are guaranteed before the website install runs, removing the need for the website/preinstall lifecycle script. Rebuild the small audited list of trusted packages (esbuild, chromedriver, tree-sitter, tree-sitter-json) after the web install so ignore-scripts=true remains the only path that needs maintenance. web/README documents the new workflow. Co-Authored-By: Playpen Agent <279763771+playpen-agent@users.noreply.github.com> * Clean up install scripts. * Track .npmrc in CODEOWNERS * Fix formatter config. Reformat. * Fix mounted references. * Flesh out node scripts. * Bump engines. * Prep containers. * Update makefile. * Flesh out github actions. * Clean up docs container. * lint. Bump. Lint. Bump NPM version. * Add limits. * collapse the composite's three setup-node calls to one cache restore * Add SHA. * Bump NPM range. * Run formatter. * Bump NPM. * Remove extra install. * Fix website deps. * Use local prettier. Fix drift in CI. * ci: build frontend in CI with node_env production Signed-off-by: Jens Langhammer <jens@goauthentik.io> * Install docusaurus config. * Fix linter warning, order. * Add linter commands. * Add timeout. * Remove pre install check. --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Playpen Agent <279763771+playpen-agent@users.noreply.github.com> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
73 lines
2.4 KiB
JSON
73 lines
2.4 KiB
JSON
{
|
|
"[css]": {
|
|
"editor.minimap.markSectionHeaderRegex": "#\\bregion\\s*(?<separator>-?)\\s*(?<label>.*)\\*/$"
|
|
},
|
|
"[makefile]": {
|
|
"editor.minimap.markSectionHeaderRegex": "^#{25}\n##\\s\\s*(?<separator>-?)\\s*(?<label>[^\n]*)\n#{25}$"
|
|
},
|
|
"[dockerfile]": {
|
|
"editor.minimap.markSectionHeaderRegex": "\\bStage\\s*\\d:(?<separator>-?)\\s*(?<label>.*)$"
|
|
},
|
|
"[jsonc]": {
|
|
"editor.minimap.markSectionHeaderRegex": "#\\bregion\\s*(?<separator>-?)\\s*(?<label>.*)$"
|
|
},
|
|
"[xml]": {
|
|
"editor.minimap.markSectionHeaderRegex": "<!--\\s*#\\bregion\\s*(?<separator>-?)\\s*(?<label>.*)\\s*-->"
|
|
},
|
|
"files.associations": {
|
|
// The built-in "ignore" language gives us enough syntax highlighting to make these files readable.
|
|
"**/dictionaries/*.txt": "ignore"
|
|
},
|
|
"todo-tree.tree.showCountsInTree": true,
|
|
"todo-tree.tree.showBadges": true,
|
|
"yaml.format.printWidth": 200,
|
|
"yaml.format.singleQuote": true,
|
|
"yaml.format.bracketSpacing": false,
|
|
"yaml.customTags": [
|
|
"!Condition sequence",
|
|
"!Context scalar",
|
|
"!Enumerate sequence",
|
|
"!Env scalar",
|
|
"!Env sequence",
|
|
"!File scalar",
|
|
"!File sequence",
|
|
"!Find sequence",
|
|
"!FindObject sequence",
|
|
"!Format sequence",
|
|
"!If sequence",
|
|
"!Index scalar",
|
|
"!KeyOf scalar",
|
|
"!Value scalar",
|
|
"!AtIndex scalar",
|
|
"!ParseJSON scalar"
|
|
],
|
|
"js/ts.preferences.importModuleSpecifier": "non-relative",
|
|
"js/ts.preferences.importModuleSpecifierEnding": "index",
|
|
"js/ts.tsdk.path": "./node_modules/typescript/lib",
|
|
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
|
|
"yaml.schemas": {
|
|
"./blueprints/schema.json": "blueprints/**/*.yaml"
|
|
},
|
|
"gitlens.autolinks": [
|
|
{
|
|
"alphanumeric": true,
|
|
"prefix": "#<num>",
|
|
"url": "https://github.com/goauthentik/authentik/issues/<num>",
|
|
"ignoreCase": false
|
|
}
|
|
],
|
|
"go.testFlags": ["-count=1"],
|
|
"go.testEnvVars": {
|
|
"WORKSPACE_DIR": "${workspaceFolder}"
|
|
},
|
|
"github-actions.workflows.pinned.workflows": [".github/workflows/ci-main.yml"],
|
|
"search.exclude": {
|
|
"**/*.code-search": true,
|
|
"**/bower_components": true,
|
|
"**/node_modules": true,
|
|
"**/playwright-report/**": true,
|
|
"**/website/**/build": true,
|
|
"**/client-*": true
|
|
}
|
|
}
|