You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/mega-linter.yml
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,7 @@
1
1
# MegaLinter GitHub Action configuration file
2
2
# More info at https://megalinter.io
3
-
# Run this locally via Docker:
4
-
# npx mega-linter-runner -r v8 -f cupcake # run as configured in .mega-linter
5
-
# npx mega-linter-runner -r v8 -f cupcake -e "'ENABLE=MARKDOWN,YAML'" -e "APPLY_FIXES=none" # only enable certain groups and disable automatic fixes (note that the '' are required for multiple values)
6
-
# npx mega-linter-runner -r v8 -f cupcake -e "ENABLE_LINTERS=MARKDOWN_MARKDOWN_LINK_CHECK" # run a specific linter
3
+
4
+
# See .mega-linter.yml for actual config and examples how to run this locally.
Copy file name to clipboardExpand all lines: .mega-linter.yml
+48-6Lines changed: 48 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,14 @@
3
3
# See all available variables at https://megalinter.io/latest/config-file/ and in
4
4
# linters documentation
5
5
6
+
# See .github/workflows/mega-linter.yml for GitHub config.
7
+
8
+
# Run this locally via Docker:
9
+
# npx mega-linter-runner -r v8 -f cupcake # run as configured here
10
+
# npx mega-linter-runner -r v8 -f cupcake -e "'ENABLE=MARKDOWN,YAML'" -e "APPLY_FIXES=none" # only enable certain groups and disable automatic fixes (note that the '' are required for multiple values)
11
+
# npx mega-linter-runner -r v8 -f cupcake -e "ENABLE_LINTERS=MARKDOWN_MARKDOWN_LINK_CHECK" # run a specific linter
12
+
# https://github.com/oxsecurity/megalinter#cli-lint-mode most linters will respect .gitignore, but the ones running in 'project' mode will not and may take forever if not configured right
13
+
6
14
# all, none, or list of linter keys
7
15
APPLY_FIXES: all
8
16
@@ -26,17 +34,51 @@ SHOW_ELAPSED_TIME: true
26
34
# ---
27
35
# Custom config:
28
36
29
-
# PRINT_ALPACA: false
37
+
PRINT_ALPACA: false
38
+
39
+
JAVASCRIPT_DEFAULT_STYLE: prettier # disables JAVASCRIPT_STANDARD in favor of JAVASCRIPT_PRETTIER - disabled below since I prefer my local eslint
40
+
41
+
# DISABLE: # groups of linters/formatters
42
+
# - REPOSITORY # ignore this for now (at least locally) since all project-based and need extra config like .gitignore
30
43
31
44
# npx mega-linter-runner -r v8 -f cupcake -e "ENABLE_LINTERS=MARKDOWN_MARKDOWN_LINK_CHECK" # run a specific linter locally
32
-
DISABLE_LINTERS:
33
-
- MARKDOWN_MARKDOWN_LINK_CHECK # took 32s and only reported 0 (e.g. for localhost) or 403 (forbidden) for working links to settings or due to DDoS/bot protections
45
+
DISABLE_LINTERS: # times are for running locally with 30GB swap, 65% pressure and several GB in data/ (relevant for project-mode linters that don't respect .gitignore)
46
+
- MARKDOWN_MARKDOWN_LINK_CHECK # 30s, only reported 0 (e.g. for localhost) or 403 (forbidden) for working links to settings or due to DDoS/bot protections
47
+
- JAVASCRIPT_STANDARD # don't like standard format
48
+
- JAVASCRIPT_PRETTIER # prefer my local eslint config
49
+
- REPOSITORY_TRIVY_SBOM # 11s, don't need SBOM
50
+
51
+
DISABLE_ERRORS_LINTERS: # error -> warning
52
+
- DOCKERFILE_HADOLINT # mostly wants to pin versions for apt and pip installs and merge consecutive RUN instructions
53
+
- COPYPASTE_JSCPD # default threshold is 0% duplicates -> can make this error once sep. scripts are refactored
54
+
- SPELL_CSPELL # needs config in .cspell.json, but looks annoying since it also flags apt packages
55
+
- SPELL_LYCHEE # dead link checking, 9/332 errors all false positives (Forbidden etc.)
56
+
- JAVASCRIPT_ES # this uses old eslint 8.57.1 instead of local 9.26.0 and complains about stuff that newer version has no problem with
57
+
- REPOSITORY_CHECKOV # docker healthcheck not needed for CLI
58
+
- REPOSITORY_KICS # wants to pin GitHub Actions to commit sha etc.
59
+
- REPOSITORY_TRIVY # docker healthcheck not needed for CLI
# JSON_PRETTIER_ARGUMENTS: --trailing-comma all --parser jsonc # need to change parser too since the default json parser still strips trailing commas
68
+
# -> let prettier remove trailing commas since e.g. npm will fail to JSON.parse package.json otherwise...
69
+
70
+
# megalinter still expects the old .eslintrc file... https://github.com/oxsecurity/megalinter/issues/3570#issuecomment-2138193684
71
+
JAVASCRIPT_ES_CONFIG_FILE: eslint.config.js
72
+
JAVASCRIPT_ES_COMMAND_REMOVE_ARGUMENTS: ["--no-eslintrc"] # not a valid option for eslint with flat config
73
+
# worked, but behaved differently than local `npm run lint` and complained about while(true) with break - probably due old version 8.57.1 (same with -r beta) instead of my local 9.26.0
REPOSITORY_CHECKOV_ARGUMENTS: --skip-path node_modules --skip-path data
39
80
40
81
# CI will comment on PRs etc., but for running locally (or downloading the results), we want more than the default megalinter-reports/megalinter.log as an overview:
SARIF_REPORTER: true # mega-linter-report.sarif - results for supported lintes should be shown in GitHub Security tab - https://megalinter.io/latest/reporters/SarifReporter/
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,7 @@ You can also put options in `data/config.env` which will be loaded by [dotenv](h
114
114
The scripts will try to send notifications for successfully claimed games and any errors like needing to log in or encountered captchas (should not happen).
115
115
116
116
[apprise](https://github.com/caronc/apprise) is used for notifications and offers many services including Pushover, Slack, Telegram, SMS, Email, desktop and custom notifications.
117
-
You just need to set `NOTIFY` to the notification services you want to use, e.g. `NOTIFY='mailto://myemail:mypass@gmail.com' 'pbul://o.gn5kj6nfhv736I7jC3cj3QLRiyhgl98b'` - refer to their list of services and [examples](https://github.com/caronc/apprise#command-line-usage).
117
+
You just need to set `NOTIFY` to the notification services you want to use, e.g. `NOTIFY='mailto://[email protected]' 'pbul://o.gn5kj6nfhv736I7jC3cj3QLRiyhgl98b'` - refer to their list of services and [examples](https://github.com/caronc/apprise#command-line-usage).
118
118
119
119
### Automatic login, two-factor authentication
120
120
If you set the options for email, password and OTP key, there will be no prompts and logins should happen automatically. This is optional since all stores should stay logged in since cookies are refreshed.
0 commit comments