Ralf Vogler
b4dcd0b8af
fix actionlint/shellcheck: $@ -> $*
...
https://www.shellcheck.net/wiki/SC2145
2025-05-25 16:12:03 +02:00
Ralf Vogler
33227081f6
fix js.yml
...
https://github.com/vogler/free-games-claimer/actions/runs/15238258120/job/42855019873
2025-05-25 15:27:32 +02:00
Ralf Vogler
25078694cd
upgrade deprecated sonarcloud-github-action -> sonarqube-scan-action
...
SonarScanner
This action is deprecated and will be removed in a future release. Please use the sonarqube-scan-action action instead. The sonarqube-scan-action is a drop-in replacement for this action.
2025-05-25 15:24:46 +02:00
Ralf Vogler
4288bf1d39
same triggers (push, PRs) for js, mega-linter, sonar
2025-05-25 15:14:14 +02:00
Ralf Vogler
0158bd64a6
use emd/cmd for js.yml
2025-05-25 15:05:04 +02:00
Ralf Vogler
f06bcccce0
echo -e for \n
2025-05-25 12:03:03 +02:00
Ralf Vogler
713600d4e0
grep size for image from df output
2025-05-25 11:59:04 +02:00
Ralf Vogler
590a78f7df
can't remove buildkit images?
2025-05-25 11:41:27 +02:00
Ralf Vogler
b8fbc0a95d
docker image rm buildkit stuff?
2025-05-25 11:35:44 +02:00
Ralf Vogler
07a2c81f05
uncompressed docker size with buildx
2025-05-25 11:23:32 +02:00
Ralf Vogler
3065ad1c5e
.dockerignore = strict superset of .gitignore, not DRY, but ok...
2025-05-25 11:09:10 +02:00
Ralf Vogler
6f3dbdbe14
need other commands to get sizes for docker buildx?
2025-05-25 02:00:41 +02:00
Ralf Vogler
d508675d0b
log (un)compressed docker image size = shared + unique
2025-05-25 01:41:07 +02:00
Ralf Vogler
d2e8f000b5
rm cross-env for npm run docker since it wasn't working right - readme as single source of truth for docker run cmd
2025-05-25 01:10:16 +02:00
Ralf Vogler
d05837b6b8
rm @microsoft/eslint-formatter-sarif (uses its own old eslint) and wget sarif.js
2025-05-25 00:34:10 +02:00
Ralf Vogler
a110b237d5
bun install almost twice as fast
2025-05-25 00:14:49 +02:00
Ralf Vogler
3d2df7654c
switch ci from npm to bun
...
https://bun.sh/guides/runtime/cicd
2025-05-25 00:12:54 +02:00
Ralf Vogler
ef94943ee8
nicer md for job summary
2025-05-25 00:08:28 +02:00
Ralf Vogler
2380d24e60
howfat tables don't work as md
2025-05-25 00:06:02 +02:00
Ralf Vogler
305effe7f1
dep size in job summary?
2025-05-24 23:56:46 +02:00
Ralf Vogler
fee46d38e0
ci/js: check size of dependencies
...
https://stackoverflow.com/questions/40642008/how-do-i-view-the-size-of-npm-packages
2025-05-24 23:40:48 +02:00
Ralf Vogler
c0abc6ee45
run eslint with sarif and then normally?
2025-05-24 23:23:37 +02:00
Ralf Vogler
603224c13e
eslint.yml -> js.yml
2025-05-24 23:12:02 +02:00
Ralf Vogler
8ba46c52ec
eslint with sarif upload
...
example from https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github#example-workflow-that-runs-the-eslint-analysis-tool
2025-05-24 23:11:19 +02:00
Ralf Vogler
a242b2d5c4
ncu -u; migrate @stylistic/eslint-plugin{-js,}
...
https://eslint.style/guide/migration
2025-05-24 22:47:08 +02:00
Ralf Vogler
02005b6fee
skip docker push for PRs
2025-05-24 22:40:22 +02:00
Ralf Vogler
c5f061c7d5
Merge pull request #476 from vogler/mega-linter
2025-05-24 22:36:32 +02:00
vogler
5f1458413d
[MegaLinter] Apply linters fixes
2025-05-24 20:25:18 +00:00
Ralf Vogler
a7b882f3a1
added PAT for megalinter with workflows permission
...
https://github.com/orgs/community/discussions/35410
2025-05-24 22:22:36 +02:00
Ralf Vogler
e7a00d7d18
megalinter apparently can't push commit fixing workflows without a sep. PAT
...
See https://github.com/orgs/community/discussions/26711
2025-05-24 21:51:53 +02:00
Ralf Vogler
b4123e5e1d
remove super-linter in favor of mega-linter
2025-05-24 21:21:23 +02:00
Ralf Vogler
9fa9325566
megalinter: job summary from markdown file
2025-05-24 21:03:23 +02:00
Ralf Vogler
1ed84a0a60
megalinter: upload-sarif category
2025-05-24 20:51:50 +02:00
Ralf Vogler
6309fc5a37
megalinter: upload-sarif needs more permissons?
...
https://github.com/github/codeql-action/issues/1806
2025-05-24 19:55:10 +02:00
Ralf Vogler
056494c9dc
megalinter customize config; local run ~7min...
...
```console
$ npx mega-linter-runner -r v8 -f cupcake
+----SUMMARY----+--------------------------+---------------+-------+-------+--------+----------+--------------+
| Descriptor | Linter | Mode | Files | Fixed | Errors | Warnings | Elapsed time |
+---------------+--------------------------+---------------+-------+-------+--------+----------+--------------+
| ✅ ACTION | actionlint | list_of_files | 4 | | 0 | 0 | 3.25s |
| ✅ BASH | bash-exec | file | 1 | | 0 | 0 | 2.77s |
| ✅ BASH | shellcheck | list_of_files | 1 | | 0 | 0 | 1.16s |
| ✅ BASH | shfmt | list_of_files | 1 | 0 | 0 | 0 | 0.6s |
| ⚠️ COPYPASTE | jscpd | project | n/a | | 8 | 0 | 24.82s |
| ⚠️ DOCKERFILE | hadolint | list_of_files | 1 | | 4 | 0 | 6.74s |
| ⚠️ JAVASCRIPT | eslint | list_of_files | 15 | 0 | 1 | 0 | 11.04s |
| ✅ JSON | jsonlint | list_of_files | 7 | | 0 | 0 | 4.76s |
| ✅ JSON | npm-package-json-lint | project | n/a | | 0 | 0 | 3.26s |
| ✅ JSON | prettier | list_of_files | 7 | 0 | 0 | 0 | 5.08s |
| ✅ JSON | v8r | list_of_files | 7 | | 0 | 0 | 47.96s |
| ✅ MARKDOWN | markdownlint | list_of_files | 2 | 0 | 0 | 0 | 12.16s |
| ✅ MARKDOWN | markdown-table-formatter | list_of_files | 2 | 0 | 0 | 0 | 4.15s |
| ⚠️ REPOSITORY | checkov | project | n/a | | 3 | 0 | 112.11s |
| ✅ REPOSITORY | gitleaks | project | n/a | | 0 | 0 | 3.09s |
| ✅ REPOSITORY | git_diff | project | n/a | | 0 | 0 | 1.22s |
| ✅ REPOSITORY | grype | project | n/a | | 0 | 0 | 159.7s |
| ⚠️ REPOSITORY | kics | project | n/a | | 24 | 0 | 14.82s |
| ✅ REPOSITORY | secretlint | project | n/a | | 0 | 0 | 7.24s |
| ✅ REPOSITORY | syft | project | n/a | | 0 | 0 | 7.83s |
| ⚠️ REPOSITORY | trivy | project | n/a | | 2 | 0 | 28.16s |
| ✅ REPOSITORY | trufflehog | project | n/a | | 0 | 0 | 26.51s |
| ⚠️ SPELL | cspell | list_of_files | 40 | | 224 | 0 | 82.25s |
| ⚠️ SPELL | lychee | list_of_files | 17 | | 9 | 0 | 10.28s |
| ✅ YAML | prettier | list_of_files | 8 | 1 | 0 | 0 | 9.12s |
| ✅ YAML | v8r | list_of_files | 8 | | 0 | 0 | 39.07s |
| ✅ YAML | yamllint | list_of_files | 8 | | 0 | 0 | 5.39s |
+---------------+--------------------------+---------------+-------+-------+--------+----------+--------------+
```
2025-05-24 19:41:33 +02:00
Ralf Vogler
76af81de56
megalinter reports also in json and md instead of just log
2025-05-24 16:02:36 +02:00
Ralf Vogler
a65a0b80a6
disable markdownlint line-length
2025-05-24 15:50:25 +02:00
Ralf Vogler
a040108e92
megalinter "''" needed for lists in env var
2025-05-24 15:50:08 +02:00
Ralf Vogler
af406b3b50
megalinter yaml: fix wrong auto-fix
2025-05-24 15:39:59 +02:00
Ralf Vogler
ec3db19fb5
megalinter yaml (funny that this complains about their own generated config...)
2025-05-24 15:38:27 +02:00
Ralf Vogler
6bd742351f
megalinter markdown
2025-05-24 15:34:00 +02:00
Ralf Vogler
0c5387729d
markdown config
2025-05-24 15:33:41 +02:00
Ralf Vogler
0495486cde
comment how to run locally
2025-05-24 15:33:19 +02:00
Ralf Vogler
91fe3aee80
run for PRs against main or dev
2025-05-24 15:33:05 +02:00
Ralf Vogler
847c921bca
use megalinter cupcake flavor (88 vs 127 linter, 5 vs 10GB image)
2025-05-24 15:32:45 +02:00
Ralf Vogler
5a9cc0cb3a
npx mega-linter-runner --install # all defaults
2025-05-23 00:54:32 +02:00
Ralf Vogler
0b27cf0a44
lint.yml -> super-linter.yml
2025-05-23 00:54:04 +02:00
Ralf Vogler
0b586c5d0c
docker: rm old labels
2025-05-23 00:52:22 +02:00
Ralf Vogler
98b001c204
docker: comment out all labels since they're added?
2025-05-23 00:04:20 +02:00
Ralf Vogler
5d48716ef1
docker: GitHub doesn't show labels due to multi-arch image -> add annotation level index
2025-05-22 23:52:23 +02:00