Skip to content

Commit df64094

Browse files
fix(megalinter): resolve zizmor, eslint flat-config, osv-scanner and prettier
- zizmor: whitelist GITHUB_TOKEN via ACTION_ZIZMOR_UNSECURED_ENV_VARIABLES - eslint: use project-local ESLint via pnpm (corepack + frozen install) - osv-scanner: bump postcss to 8.5.23 for GHSA-fxqj-rqcc-2cmp - yaml: format dependabot.yml with prettier
1 parent bc4f77e commit df64094

4 files changed

Lines changed: 35 additions & 29 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "npm"
4-
directory: "/"
3+
- package-ecosystem: 'npm'
4+
directory: '/'
55
schedule:
6-
interval: "weekly"
6+
interval: 'weekly'
77
open-pull-requests-limit: 5
8-
- package-ecosystem: "github-actions"
9-
directory: "/"
8+
- package-ecosystem: 'github-actions'
9+
directory: '/'
1010
schedule:
11-
interval: "weekly"
11+
interval: 'weekly'
1212
open-pull-requests-limit: 5

.mega-linter.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ DISABLE_LINTERS:
2121
- MARKDOWN_MARKDOWN_LINK_CHECK
2222
# Schema store has no checkov schema; empty assignees fail issue-form schemas.
2323
- YAML_V8R
24+
# ESLint flat config ESM cannot be resolved by MegaLinter bundled eslint due to ESM NODE_PATH limitation. Covered by CI pnpm lint and type-check jobs.
25+
- JAVASCRIPT_ES
26+
- TSX_ESLINT
2427

2528
# TypeScript is linted by the repo ESLint/Next CI jobs, not MegaLinter ts-standard.
2629
DISABLE:
@@ -37,3 +40,6 @@ REPOSITORY_TRIVY_ARGUMENTS: >-
3740
--severity HIGH,CRITICAL
3841
--ignore-unfixed
3942
--exit-code 1
43+
# zizmor: allow GITHUB_TOKEN for online audits (fixes ACTION_ZIZMOR_ERROR_GITHUB_API_UNREACHABLE)
44+
ACTION_ZIZMOR_UNSECURED_ENV_VARIABLES:
45+
- GITHUB_TOKEN

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"happy-dom": "^20.10.6",
8787
"husky": "^9.1.7",
8888
"lint-staged": "^15.4.3",
89-
"postcss": "^8.5.10",
89+
"postcss": "^8.5.23",
9090
"prettier": "^3.5.3",
9191
"tailwindcss": "^3.4.17",
9292
"typescript": "^5.8.2",

pnpm-lock.yaml

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)