Skip to content

CI: save the Trivy database cache only once a day on main - #9687

Open
nvuillam wants to merge 5 commits into
mainfrom
ci/trivy-db-cache-main-only
Open

nvuillam wants to merge 5 commits into
mainfrom
ci/trivy-db-cache-main-only

Conversation

@nvuillam

@nvuillam nvuillam commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Problem

The Docker layer cache of the DEV image build is evicted: the build of PR #8813 restored 7 of 142 steps from cache and logged ERROR: blob sha256:...: not found, so it rebuilt the image almost from scratch (7.8 min of build).

The Actions cache of the repository is at 9.84 GB of 10 GB. 8 of its 9 biggest entries are cache-trivy-<date> (about 1 GB each) on refs/pull/<n>/merge: aquasecurity/trivy-action caches the Trivy databases by default, with a key that changes every day, so every pull request saves its own copy every day. GitHub then evicts the BuildKit blobs to stay under 10 GB.

Fix

  • Every trivy-action step (8 workflows) restores the newest Trivy cache with actions/cache/restore and runs with cache: "false": it uses the restored databases (the action always sets TRIVY_CACHE_DIR to cache-dir) and downloads fresh ones only when they are stale, without saving them.
  • New Trivy database cache workflow (daily 02:30 UTC + manual): downloads the vulnerability and Java databases through the three mirrors used by REPOSITORY_TRIVY (with retries) and saves them on main, where every branch and pull request can read them. actions/cache/save saves them even when no scan runs, unlike the action's post step, which skips the save when the job fails (main only had an entry from 2026-11-26).
  • Cache cleanup: a first pass keeps only the newest Trivy entry on main and deletes every other cache-trivy-* entry.

Dry run of the new cleanup pass on today's cache list (read-only): it keeps the main entry and would delete the 8 pull request copies, about 8.4 GB.

Side effect

With cache: false, setup-trivy no longer caches the 46 MB Trivy binary either: each job downloads it from the GitHub release (a few seconds).

Verification

  • All 8 Trivy steps are preceded by the restore step and set cache: "false" (checked by parsing every workflow).
  • zizmor (offline, medium+): no findings on the changed workflows.

After merge

  1. Run Trivy database cache once manually, then Cache cleanup.
  2. Measure the cached steps of the next DEV image builds and fill the After cell of the CHANGELOG table. If the build still restores less than about 80% of its steps, the next step is a registry cache on ghcr.io for the main image (no 10 GB limit there).

This is the first of three CI speed changes (then: linter matrix selection, per-job disk preparation).

Also: fix Trivy scan - DEV (required check failing on every pull request)

#9674 was merged with Trivy errors and its temporary diagnostic step. This PR removes the step and fixes the 12 advisories it located in the image:

Package (in the image) Advisories Fix
websocket-driver 0.7.5 (@salesforce/plugin-code-analyzer) 6 Code Analyzer 5.16.0 → 5.17.0 (ships 0.8.2)
minimatch 11.0.2 (npm-package-json-lint) CVE-2026-140008 npm-package-json-lint 11.0.1 → 11.4.0 (pins 11.0.9)
cross-spawn 7.0.6 (Code Analyzer shrinkwrap, also in 5.17.0) CVE-2026-137199, CVE-2026-137198 ignored: Windows-only injection, the image is Linux
ws 8.21.1 (Code Analyzer shrinkwrap, also in 5.17.0) CVE-2026-140009 ignored: memory DoS of a peer flooded with pings, Code Analyzer is only a client of the user's org
tar 7.5.22 (bundled in npm 11.21.3, dependency of @salesforce/cli through npm ^11.21.0) CVE-2026-140242 ignored: every npm 11 release bundles it; used only to extract registry tarballs at image build

The Dockerfiles are regenerated by build.py; the native locks of the two linters are left to the Native locks workflow.

trivy-action saved a 1 GB cache-trivy-<date> entry for every pull
request and every day. Nine of them filled the 10 GB Actions cache and
evicted the BuildKit layers of the DEV image build (7 of 142 steps
cached, "blob not found").

- Every trivy-action step restores the newest entry with
  actions/cache/restore and runs with cache: "false"
- New "Trivy database cache" workflow downloads both databases daily
  through the three mirrors and saves them on main
- Cache cleanup keeps only the newest Trivy entry
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

✅⚠️ MegaLinter analysis: Success with warnings

⚠️ PYTHON / bandit - 318 errors
suitable for security/cryptographic purposes.
   Severity: Low   Confidence: High
   CWE: CWE-330 (https://cwe.mitre.org/data/definitions/330.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/blacklists/blacklist_calls.html#b311-random
   Location: ./megalinter/utils_sarif.py:207:61
206	                        rule["id"] = (
207	                            rule["id"] + "_DUPLICATE_" + str(random.randint(1, 99999))
208	                        )

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: ./megalinter/utilstest.py:131:4
130	    )
131	    assert os.path.isdir(config.get(request_id, "DEFAULT_WORKSPACE")), (
132	        "DEFAULT_WORKSPACE "
133	        + config.get(request_id, "DEFAULT_WORKSPACE")
134	        + " is not a valid folder"
135	    )
136	

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: ./megalinter/utilstest.py:215:4
214	    tmp_report_folder = tempfile.gettempdir() + os.path.sep + str(uuid.uuid4())
215	    assert os.path.isdir(workspace), f"Test folder {workspace} is not existing"
216	    linter_name = linter.linter_name

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: ./megalinter/utilstest.py:290:4
289	    tmp_report_folder = tempfile.gettempdir() + os.path.sep + str(uuid.uuid4())
290	    assert os.path.isdir(workspace), f"Test folder {workspace} is not existing"
291	    if os.path.isfile(workspace + os.path.sep + "no_test_failure"):

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: ./megalinter/utilstest.py:540:4
539	    )
540	    assert os.path.isdir(workspace), f"Test folder {workspace} is not existing"
541	    expected_file_name = ""

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: ./megalinter/utilstest.py:682:4
681	    workspace = find_sarif_test_workspace(linter, workspace)
682	    assert os.path.isdir(workspace), f"Test folder {workspace} is not existing"
683	    # A formatter reports its unformatted files as notes, which are not errors: its

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: ./megalinter/utilstest.py:823:4
822	        workspace = workspace + os.path.sep + "fix"
823	    assert os.path.isdir(workspace), f"Test folder {workspace} is not existing"
824	

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: ./megalinter/utilstest.py:929:12
928	            ]
929	            assert (len(list(diffs))) > 0, f"No changes in the {file} file"
930	

--------------------------------------------------
>> Issue: [B108:hardcoded_tmp_directory] Probable insecure usage of temp file/directory.
   Severity: Medium   Confidence: Medium
   CWE: CWE-377 (https://cwe.mitre.org/data/definitions/377.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b108_hardcoded_tmp_directory.html
   Location: ./server/server.py:81:42
80	    if item.fileUploadId:
81	        uploaded_file_path = os.path.join("/tmp/server-files", item.fileUploadId)
82	        if not os.path.isdir(uploaded_file_path):

--------------------------------------------------
>> Issue: [B108:hardcoded_tmp_directory] Probable insecure usage of temp file/directory.
   Severity: Medium   Confidence: Medium
   CWE: CWE-377 (https://cwe.mitre.org/data/definitions/377.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b108_hardcoded_tmp_directory.html
   Location: ./server/server.py:108:38
107	    file_upload_id = "FILE_" + str(uuid1())
108	    uploaded_file_path = os.path.join("/tmp/server-files", file_upload_id)
109	    os.makedirs(uploaded_file_path)

--------------------------------------------------
>> Issue: [B108:hardcoded_tmp_directory] Probable insecure usage of temp file/directory.
   Severity: Medium   Confidence: Medium
   CWE: CWE-377 (https://cwe.mitre.org/data/definitions/377.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b108_hardcoded_tmp_directory.html
   Location: ./server/server_worker.py:102:34
101	        temp_dir = self.create_temp_dir()
102	        upload_dir = os.path.join("/tmp/server-files", file_upload_id)
103	        if os.path.exists(upload_dir):

--------------------------------------------------

Code scanned:
	Total lines of code: 50956
	Total lines skipped (#nosec): 0
	Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 2

Run metrics:
	Total issues (by severity):
		Undefined: 0
		Low: 228
		Medium: 80
		High: 10
	Total issues (by confidence):
		Undefined: 0
		Low: 44
		Medium: 61
		High: 213
Files skipped (0):

(Truncated to last 6666 characters out of 214103)
⚠️ SPELL / lychee - 71 errors
(at 231:24) | Rejected status code: 404 Not Found
[404] https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/%7B%7B.Group%7D%7D/%7B%7B.ResourceKind%7D%7D_%7B%7B.ResourceAPIVersion%7D%7D.json (at 77:22) | Rejected status code: 404 Not Found

Errors in megalinter/descriptors/latex.megalinter-descriptor.yml
[TIMEOUT] https://www.nongnu.org/chktex (at 36:17) | Request timed out
[TIMEOUT] https://www.nongnu.org/chktex/ (at 39:23) | Request timed out
[TIMEOUT] https://www.nongnu.org/chktex/ (at 41:38) | Request timed out

Errors in megalinter/descriptors/markdown.megalinter-descriptor.yml
[404] https://github.com/rvben/rumdl/blob/main/docs/RULES.md (at 211:23) | Rejected status code: 404 Not Found
[403] https://www.npmjs.com/package/markdown-table-formatter (at 132:17) | Rejected status code: 403 Forbidden

Errors in megalinter/descriptors/native-runtimes.yml
[404] https://dl.google.com/go/%7B%7BASSET_NAME%7D%7D.sha256 (at 202:25) | Rejected status code: 404 Not Found
[404] https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.13%2B9/%7B%7BASSET_NAME%7D%7D.sig (at 120:27) | Rejected status code: 404 Not Found

Errors in megalinter/descriptors/repository.megalinter-descriptor.yml
[404] https://github.com/secretlint/secretlint/raw/master/docs/assets/SecretLintLP.png (at 936:30) | Rejected status code: 404 Not Found
[ERROR] https://github/ (at 1364:30) | Connection failed. Check network connectivity and firewall settings
[ERROR] https://github/ (at 1507:30) | Error (cached)
[404] https://raw.githubusercontent.com/oxsecurity/megalinter/main/docs/assets/icons/linters/betterleaks.png (at 367:26) | Rejected status code: 404 Not Found
[404] https://token.actions.githubusercontent.com/ (at 1365:19) | Error (cached)
[404] https://token.actions.githubusercontent.com/ (at 1508:19) | Error (cached)
[404] https://token.actions.githubusercontent.com/ (at 1609:19) | Error (cached)

Errors in megalinter/descriptors/rst.megalinter-descriptor.yml
[403] https://docutils.sourceforge.io/docs/ref/rst/directives.html#raw-data-pass-through (at 42:38) | Rejected status code: 403 Forbidden

Errors in megalinter/descriptors/salesforce.megalinter-descriptor.yml
[403] https://developer.salesforce.com/docs/platform/salesforce-cli-reference/guide/cli_reference_org_display.html (at 195:185) | Rejected status code: 403 Forbidden
[403] https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/config.html (at 209:37) | Rejected status code: 403 Forbidden
[403] https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/config.html (at 582:37) | Rejected status code: 403 Forbidden
[403] https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/engine-apexguru.html (at 206:17) | Rejected status code: 403 Forbidden
[403] https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/engine-apexguru.html (at 208:23) | Rejected status code: 403 Forbidden
[403] https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/engine-flow.html (at 579:17) | Rejected status code: 403 Forbidden
[403] https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/get-started.html (at 344:17) | Rejected status code: 403 Forbidden
[403] https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/get-started.html (at 464:17) | Rejected status code: 403 Forbidden
[403] https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/get-started.html (at 75:17) | Rejected status code: 403 Forbidden
[403] https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/rules-flow.html (at 581:23) | Rejected status code: 403 Forbidden

Errors in megalinter/descriptors/shared/cppcheck.megalinter-linter.yml
[403] https://cppcheck.sourceforge.io/ (at 3:13) | Rejected status code: 403 Forbidden
[403] https://cppcheck.sourceforge.io/ (at 4:14) | Rejected status code: 403 Forbidden
[403] https://cppcheck.sourceforge.io/manual.html#configuration (at 8:33) | Rejected status code: 403 Forbidden

Errors in megalinter/descriptors/spell.megalinter-descriptor.yml
[404] https://vale.sh/docs/topics/vocab/ (at 246:38) | Rejected status code: 404 Not Found | Followed 2 redirects. Redirects: https://vale.sh/docs/topics/vocab/ --[301]--> https://docs.vale.sh/topics/vocab/ --[308]--> https://docs.vale.sh/topics/vocab
[404] https://vale.sh/docs/vale-cli/structure/ (at 239:95) | Rejected status code: 404 Not Found | Followed 2 redirects. Redirects: https://vale.sh/docs/vale-cli/structure/ --[301]--> https://docs.vale.sh/vale-cli/structure/ --[308]--> https://docs.vale.sh/vale-cli/structure

Errors in megalinter/descriptors/sql.megalinter-descriptor.yml
[404] https://docs.sqlfluff.com/en/stable/_static/images/sqlfluff-lrg.png (at 32:23) | Rejected status code: 404 Not Found

Errors in megalinter/descriptors/terraform.megalinter-descriptor.yml
[404] https://github.com/gruntwork-io/terragrunt/blob/master/docs/assets/img/favicon/ms-icon-310x310.png (at 158:23) | Rejected status code: 404 Not Found | Followed 1 redirect. Redirects: https://github.com/gruntwork-io/terragrunt/blob/master/docs/assets/img/favicon/ms-icon-310x310.png --[302]--> https://github.com/gruntwork-io/terragrunt/blob/main/docs/assets/img/favicon/ms-icon-310x310.png
[404] https://github.com/opentofu/opentofu/.github/workflows/release.yml@refs/heads/v1.13 (at 416:21) | Rejected status code: 404 Not Found
[404] https://github.com/opentofu/opentofu/.github/workflows/release.yml@refs/heads/v1.13 (at 590:21) | Rejected status code: 404 Not Found
[404] https://token.actions.githubusercontent.com/ (at 417:19) | Rejected status code: 404 Not Found
[404] https://token.actions.githubusercontent.com/ (at 591:19) | Rejected status code: 404 Not Found

Errors in megalinter/descriptors/tsx.megalinter-descriptor.yml
[404] https://eslint-react.xyz/docs/getting-started/installation (at 83:37) | Error (cached)

Errors in megalinter/descriptors/xml.megalinter-descriptor.yml
[406] https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home (at 45:17) | Rejected status code: 406 Not Acceptable

Errors in README.md
[404] https://github.com/oxsecurity/megalinter/stargazers/ (at 20:1) | Rejected status code: 404 Not Found
[403] https://npmjs.org/package/mega-linter-runner (at 18:1) | Rejected status code: 403 Forbidden | Followed 1 redirect. Redirects: https://npmjs.org/package/mega-linter-runner --[301]--> https://www.npmjs.com/package/mega-linter-runner

Hint: Followed 704 redirects. You might want to consider replacing redirecting URLs with the resolved URLs. Use verbose mode (`-v`/`-vv`) to see redirection details.

(Truncated to last 6666 characters out of 36123)
⚠️ MARKDOWN / markdownlint - 454 errors
5/single-title/single-h1 Multiple top-level headings in the same document [Context: "saltlint"]
docs/quick-start.md:7 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Quick Start"]
docs/removed-linters.md:9 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Removed linters"]
docs/reporters.md:7 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Reporters"]
docs/reporters/AzureCommentReporter.md:6 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Azure Comment Reporter"]
docs/reporters/BitbucketCommentReporter.md:6 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Bitbucket Comment Reporter"]
docs/reporters/ConfigReporter.md:5 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "IDE Configuration Reporter"]
docs/reporters/ConsoleReporter.md:5 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Console Reporter"]
docs/reporters/EmailReporter.md:5 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "E-mail Reporter"]
docs/reporters/FileIoReporter.md:5 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "File.io Reporter"]
docs/reporters/GitHubCommentReporter.md:6 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "GitHub Comment Reporter"]
docs/reporters/GitHubCommentReporter.md:27:196 error MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]
docs/reporters/GitHubCommentReporter.md:27:46 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/reporters/GitHubCommentReporter.md:27:174 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/reporters/GitHubCommentReporter.md:27:196 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/reporters/GitHubCommentReporter.md:28:179 error MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]
docs/reporters/GitHubCommentReporter.md:28:46 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/reporters/GitHubCommentReporter.md:28:160 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/reporters/GitHubCommentReporter.md:28:179 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/reporters/GitHubCommentReporter.md:29:159 error MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]
docs/reporters/GitHubCommentReporter.md:29:48 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/reporters/GitHubCommentReporter.md:29:143 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/reporters/GitHubCommentReporter.md:29:159 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/reporters/GitHubCommentReporter.md:30:171 error MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]
docs/reporters/GitHubCommentReporter.md:30:46 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/reporters/GitHubCommentReporter.md:30:152 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/reporters/GitHubCommentReporter.md:30:171 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/reporters/GitHubStatusReporter.md:6 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "GitHub Status Reporter"]
docs/reporters/GitlabCommentReporter.md:6 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Gitlab Comment Reporter"]
docs/reporters/JiraReporter.md:6 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Jira Reporter"]
docs/reporters/JsonReporter.md:5 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "JSON Reporter"]
docs/reporters/MarkdownSummaryReporter.md:6 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Markdown Summary Reporter"]
docs/reporters/SarifReporter.md:6 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "SARIF Reporter (beta)"]
docs/reporters/TapReporter.md:5 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "TAP Reporter"]
docs/reporters/TextReporter.md:5 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Text Reporter"]
docs/reporters/UpdatedSourcesReporter.md:5 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Updated Sources Reporter"]
docs/special-thanks.md:7 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Special thanks"]
docs/special-thanks.md:21:3 error MD045/no-alt-text Images should have alternate text (alt text)
docs/sponsor.md:5 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Sponsoring"]
docs/supported-linters.md:7 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Supported Linters"]
mega-linter-runner/README.md:27:274 error MD051/link-fragments Link fragments should be valid [Context: "[**apply formatting and auto-fixes**](#apply-fixes)"]
mega-linter-runner/README.md:27:217 error MD051/link-fragments Link fragments should be valid [Context: "[**reports in several formats**](#reports)"]
skills/megalinter-check/performance.md:27:601 error MD013/line-length Line length [Expected: 600; Actual: 713]
skills/megalinter-setup/agents/megalinter-runner.md:18:601 error MD013/line-length Line length [Expected: 600; Actual: 1162]
skills/megalinter-setup/agents/megalinter-runner.md:35:601 error MD013/line-length Line length [Expected: 600; Actual: 620]

(Truncated to last 6666 characters out of 58995)
⚠️ YAML / prettier - 14 errors
custom-flavor/templates/action.yml 1ms (unchanged)
mega-linter-runner/generators/mega-linter-custom-flavor/templates/check-new-megalinter-version.yml 7ms (unchanged)
mega-linter-runner/generators/mega-linter-custom-flavor/templates/megalinter-custom-flavor-builder.yml 7ms (unchanged)
[error] mega-linter-runner/generators/mega-linter-custom-flavor/templates/megalinter-custom-flavor.yml: SyntaxError: Implicit map keys need to be followed by map values (6:1)
[error]   4 | label: <%= CUSTOM_FLAVOR_LABEL %>
[error]   5 | linters:
[error] > 6 | <%= CUSTOM_FLAVOR_LINTERS %>
[error]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error]   7 |
mega-linter-runner/generators/mega-linter-custom-flavor/templates/zizmor.yml 1ms (unchanged)
mega-linter-runner/generators/mega-linter/templates/.drone.yml 2ms (unchanged)
mega-linter-runner/generators/mega-linter/templates/.gitlab-ci.yml 2ms (unchanged)
mega-linter-runner/generators/mega-linter/templates/azure-pipelines.yml 2ms (unchanged)
mega-linter-runner/generators/mega-linter/templates/bitbucket-pipelines.yml 2ms (unchanged)
mega-linter-runner/generators/mega-linter/templates/concourse-task.yml 2ms (unchanged)
[error] mega-linter-runner/generators/mega-linter/templates/mega-linter.yml: SyntaxError: Implicit map keys need to be followed by map values (67:11)
[error]   65 |           # Only define `secrets.PAT` if you fully understand the trade-off.
[error]   66 |           token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
[error] > 67 |           <%- PERSIST_CREDENTIALS %>
[error]      |           ^^^^^^^^^^^^^^^^^^^^^^^^^^
[error]   68 |
[error]   69 |           # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to
[error]   70 |           # improve performance
megalinter/descriptors/action.megalinter-descriptor.yml 16ms (unchanged)
megalinter/descriptors/ansible.megalinter-descriptor.yml 8ms (unchanged)
megalinter/descriptors/api.megalinter-descriptor.yml 6ms (unchanged)
megalinter/descriptors/arm.megalinter-descriptor.yml 8ms (unchanged)
megalinter/descriptors/bash.megalinter-descriptor.yml 18ms (unchanged)
megalinter/descriptors/bicep.megalinter-descriptor.yml 4ms (unchanged)
megalinter/descriptors/c.megalinter-descriptor.yml 2ms (unchanged)
megalinter/descriptors/clojure.megalinter-descriptor.yml 8ms (unchanged)
megalinter/descriptors/cloudformation.megalinter-descriptor.yml 7ms (unchanged)
megalinter/descriptors/coffee.megalinter-descriptor.yml 5ms (unchanged)
megalinter/descriptors/copypaste.megalinter-descriptor.yml 7ms (unchanged)
megalinter/descriptors/cpp.megalinter-descriptor.yml 2ms (unchanged)
megalinter/descriptors/csharp.megalinter-descriptor.yml 8ms (unchanged)
megalinter/descriptors/css.megalinter-descriptor.yml 8ms (unchanged)
megalinter/descriptors/dart.megalinter-descriptor.yml 3ms (unchanged)
megalinter/descriptors/dockerfile.megalinter-descriptor.yml 3ms (unchanged)
megalinter/descriptors/editorconfig.megalinter-descriptor.yml 6ms (unchanged)
megalinter/descriptors/env.megalinter-descriptor.yml 3ms (unchanged)
megalinter/descriptors/gherkin.megalinter-descriptor.yml 3ms (unchanged)
megalinter/descriptors/go.megalinter-descriptor.yml 10ms (unchanged)
megalinter/descriptors/graphql.megalinter-descriptor.yml 3ms (unchanged)
megalinter/descriptors/groovy.megalinter-descriptor.yml 3ms (unchanged)
megalinter/descriptors/html.megalinter-descriptor.yml 9ms (unchanged)
megalinter/descriptors/java.megalinter-descriptor.yml 10ms (unchanged)
megalinter/descriptors/javascript.megalinter-descriptor.yml 7ms (unchanged)
megalinter/descriptors/json.megalinter-descriptor.yml 11ms (unchanged)
megalinter/descriptors/jsx.megalinter-descriptor.yml 3ms (unchanged)
megalinter/descriptors/kotlin.megalinter-descriptor.yml 7ms (unchanged)
megalinter/descriptors/kubernetes.megalinter-descriptor.yml 10ms (unchanged)
megalinter/descriptors/latex.megalinter-descriptor.yml 4ms (unchanged)
megalinter/descriptors/lua.megalinter-descriptor.yml 10ms (unchanged)
megalinter/descriptors/markdown.megalinter-descriptor.yml 11ms (unchanged)
megalinter/descriptors/native-runtimes.yml 17ms (unchanged)
megalinter/descriptors/perl.megalinter-descriptor.yml 4ms (unchanged)
megalinter/descriptors/php.megalinter-descriptor.yml 32ms (unchanged)
megalinter/descriptors/powershell.megalinter-descriptor.yml 6ms (unchanged)
megalinter/descriptors/protobuf.megalinter-descriptor.yml 4ms (unchanged)
megalinter/descriptors/python.megalinter-descriptor.yml 55ms (unchanged)
megalinter/descriptors/r.megalinter-descriptor.yml 3ms (unchanged)
megalinter/descriptors/raku.megalinter-descriptor.yml 3ms (unchanged)
megalinter/descriptors/repository.megalinter-descriptor.yml 51ms (unchanged)
megalinter/descriptors/robotframework.megalinter-descriptor.yml 3ms (unchanged)
megalinter/descriptors/rst.megalinter-descriptor.yml 7ms (unchanged)
megalinter/descriptors/ruby.megalinter-descriptor.yml 3ms (unchanged)
megalinter/descriptors/rust.megalinter-descriptor.yml 2ms (unchanged)
megalinter/descriptors/salesforce.megalinter-descriptor.yml 23ms (unchanged)
megalinter/descriptors/scala.megalinter-descriptor.yml 6ms (unchanged)
megalinter/descriptors/shared/biome.megalinter-linter.yml 3ms (unchanged)
megalinter/descriptors/shared/clang-format.megalinter-linter.yml 3ms (unchanged)
megalinter/descriptors/shared/cppcheck.megalinter-linter.yml 2ms (unchanged)
megalinter/descriptors/shared/cpplint.megalinter-linter.yml 2ms (unchanged)
megalinter/descriptors/shared/dotnet-format.megalinter-linter.yml 2ms (unchanged)
megalinter/descriptors/shared/eslint.megalinter-linter.yml 3ms (unchanged)
megalinter/descriptors/shared/prettier.megalinter-linter.yml 4ms (unchanged)
megalinter/descriptors/shared/v8r.megalinter-linter.yml 3ms (unchanged)
megalinter/descriptors/snakemake.megalinter-descriptor.yml 7ms (unchanged)
megalinter/descriptors/spell.megalinter-descriptor.yml 27ms (unchanged)
megalinter/descriptors/sql.megalinter-descriptor.yml 4ms (unchanged)
megalinter/descriptors/swift.megalinter-descriptor.yml 3ms (unchanged)
megalinter/descriptors/tekton.megalinter-descriptor.yml 2ms (unchanged)
megalinter/descriptors/terraform.megalinter-descriptor.yml 14ms (unchanged)
megalinter/descriptors/tsx.megalinter-descriptor.yml 3ms (unchanged)
megalinter/descriptors/typescript.megalinter-descriptor.yml 6ms (unchanged)
megalinter/descriptors/vbdotnet.megalinter-descriptor.yml 2ms (unchanged)
megalinter/descriptors/xml.megalinter-descriptor.yml 2ms (unchanged)
megalinter/descriptors/yaml.megalinter-descriptor.yml 5ms (unchanged)
server/docker-compose-dev.yml 2ms (unchanged)
server/docker-compose.yml 2ms (unchanged)
trivy-secret.yaml 1ms (unchanged)
zizmor.yml 1ms (unchanged)

(Truncated to last 6666 characters out of 12663)
⚠️ PYTHON / ty - 311 errors
e[str, bytes] | None = None) -> Awaitable[bytes | str]
info: Overload implementation defined here
    --> /usr/local/lib/python3.14/site-packages/redis/commands/core.py:7862:9
     |
7862 |       def xadd(
     |  _________^
7863 | |         self,
7864 | |         name: KeyT,
7865 | |         fields: Dict[FieldT, EncodableT],
7866 | |         id: StreamIdT = "*",
7867 | |         maxlen: Optional[int] = None,
7868 | |         approximate: bool = True,
7869 | |         nomkstream: bool = False,
7870 | |         minid: Union[StreamIdT, None] = None,
7871 | |         limit: int | None = None,
7872 | |         ref_policy: Literal["KEEPREF", "DELREF", "ACKED"] | None = None,
7873 | |         idmpauto: str | None = None,
7874 | |         idmp: tuple[str, bytes] | None = None,
7875 | |     ) -> (bytes | str) | Awaitable[bytes | str]:
     | |_______________________________________________^

error[no-matching-overload]: No overload of bound method `PubSubCommands.publish` matches arguments
  --> server/errors.py:66:24
   |
66 |                 resp = redis.publish(self.pubsub_channel, json.dumps(final_message))
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
info: First overload defined here
     --> /usr/local/lib/python3.14/site-packages/redis/commands/core.py:12141:5
      |
12141 | /     @overload
12142 | |     def publish(
12143 | |         self: SyncClientProtocol, channel: ChannelT, message: EncodableT, **kwargs
12144 | |     ) -> int: ...
      | |_________________^ First overload defined here
info: Possible overloads for bound method `publish`:
info:   (self: SyncClientProtocol, channel: bytes | str | memoryview[int], message: bytes | bytearray | memoryview[int] | str | float, **kwargs) -> int
info:   (self: AsyncClientProtocol, channel: bytes | str | memoryview[int], message: bytes | bytearray | memoryview[int] | str | float, **kwargs) -> Awaitable[int]
info: Overload implementation defined here
     --> /usr/local/lib/python3.14/site-packages/redis/commands/core.py:12151:9
      |
12151 |       def publish(
      |  _________^
12152 | |         self, channel: ChannelT, message: EncodableT, **kwargs
12153 | |     ) -> int | Awaitable[int]:
      | |_____________________________^

error[invalid-argument-type]: Argument to bound method `Repo.clone_from` is incorrect
  --> server/server_worker.py:85:33
   |
85 |             git.Repo.clone_from(self.request_input.repositoryUrl, temp_dir)
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `str | PathLike[str]`, found `str | None`
info: element `None` of union `str | None` is not assignable to `str | PathLike[str]`
info: └── type `None` is not assignable to any element of the union `str | PathLike[str]`
info:     ├── type `None` is not assignable to protocol `PathLike[str]`
info:     │   └── protocol member `__fspath__` is not defined on type `None`
info:     └── ... omitted 1 union element without additional context
info: Method defined here
    --> /usr/local/lib/python3.14/site-packages/git/repo/base.py:1676:9
     |
1676 |     def clone_from(
     |         ^^^^^^^^^^
1677 |         cls,
1678 |         url: PathLike,
     |         ------------- Parameter declared here

error[invalid-argument-type]: Argument to bound method `_TextIOBase.write` is incorrect
   --> server/server_worker.py:138:24
    |
138 |             file.write(self.request_input.snippet)
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `str`, found `str | None`
info: element `None` of union `str | None` is not assignable to `str`
info: Method defined here
   --> stdlib/_io.pyi:707:9
    |
707 |     def write(self, s: str, /) -> int:
    |         ^^^^^       ------ Parameter declared here

error[unsupported-operator]: Unsupported `+` operation
   --> server/server_worker.py:154:17
    |
154 |                 "Unable to find pygments language for " + languageId,
    |                 ---------------------------------------^^^----------
    |                 |                                         |
    |                 |                                         Has type `str | None`
    |                 Has type `Literal["Unable to find pygments language for "]`

error[invalid-argument-type]: Argument to function `len` is incorrect
   --> server/server_worker.py:163:16
    |
163 |         if len(code_lexer_filenames) > 0:
    |                ^^^^^^^^^^^^^^^^^^^^ Expected `Sized`, found `None | Unknown`
info: element `None` of union `None | Unknown` is not assignable to `Sized`
info: └── type `None` is not assignable to protocol `Sized`
info:     └── protocol member `__len__` is not defined on type `None`
info: Function defined here
    --> stdlib/builtins.pyi:4201:5
     |
4201 | def len(obj: Sized, /) -> int:
     |     ^^^ ---------- Parameter declared here

error[not-subscriptable]: Cannot subscript object of type `None` with no `__getitem__` method
   --> server/server_worker.py:164:24
    |
164 |             if "*." in code_lexer_filenames[0]:
    |                        ^^^^^^^^^^^^^^^^^^^^^^^

error[not-subscriptable]: Cannot subscript object of type `None` with no `__getitem__` method
   --> server/server_worker.py:165:49
    |
165 |                 snippet_file_name = "snippet" + code_lexer_filenames[0].replace("*", "")
    |                                                 ^^^^^^^^^^^^^^^^^^^^^^^

error[not-subscriptable]: Cannot subscript object of type `None` with no `__getitem__` method
   --> server/server_worker.py:167:37
    |
167 |                 snippet_file_name = code_lexer_filenames[0]
    |                                     ^^^^^^^^^^^^^^^^^^^^^^^

Found 311 diagnostics (0 fixed, 311 remaining).


[PYTHON_TY_ERROR_IMPORT_NOT_FOUND] ty could not resolve a third-party or local module import (`import-not-found`).
Because ty runs inside MegaLinter's isolated container, it will not see packages installed only in your project's environment unless configured.
Resolutions:
  - Install your project dependencies before linting and point ty to that environment via `PYTHON_TY_PRE_COMMANDS` or `--python` in `PYTHON_TY_ARGUMENTS`:
      PYTHON_TY_PRE_COMMANDS:
        - command: "pip install -r requirements.txt"
          venv: ty
          continue_if_failed: false
  - For first-party modules outside the repository root (e.g. `.automation/` or `src/`), add them under `[environment] extra-paths` in `ty.toml` or `[tool.ty.environment]` in `pyproject.toml`.
  - To ignore missing-import errors when external stubs/packages are unavailable, set `import-not-found = "ignore"` under `[rules]` (`[tool.ty.rules]` in `pyproject.toml`).

(Truncated to last 6666 characters out of 297558)
⚠️ YAML / yamllint - 57 errors
.grype.yaml
  6:1       warning  missing document start "---"  (document-start)

mega-linter-runner/.eslintrc.yml
  11:9      warning  too few spaces inside empty braces  (braces)

mega-linter-runner/generators/mega-linter-custom-flavor/templates/megalinter-custom-flavor-builder.yml
  48:15     warning  too few spaces inside empty braces  (braces)

mega-linter-runner/generators/mega-linter-custom-flavor/templates/megalinter-custom-flavor.yml
  7:1       error    syntax error: could not find expected ':' (syntax)

mega-linter-runner/generators/mega-linter/templates/mega-linter.yml
  38:15     warning  too few spaces inside empty braces  (braces)
  69:11     error    syntax error: could not find expected ':' (syntax)

megalinter/descriptors/copypaste.megalinter-descriptor.yml
  19:301    warning  line too long (313 > 300 characters)  (line-length)
  25:301    warning  line too long (384 > 300 characters)  (line-length)

megalinter/descriptors/javascript.megalinter-descriptor.yml
  52:301    warning  line too long (475 > 300 characters)  (line-length)
  342:301   warning  line too long (307 > 300 characters)  (line-length)
  368:301   warning  line too long (315 > 300 characters)  (line-length)

megalinter/descriptors/json.megalinter-descriptor.yml
  14:28     warning  too few spaces inside empty braces  (braces)
  134:301   warning  line too long (315 > 300 characters)  (line-length)

megalinter/descriptors/jsx.megalinter-descriptor.yml
  29:301    warning  line too long (475 > 300 characters)  (line-length)

megalinter/descriptors/native-runtimes.yml
  24:1      warning  missing document start "---"  (document-start)

megalinter/descriptors/perl.megalinter-descriptor.yml
  37:301    warning  line too long (310 > 300 characters)  (line-length)

megalinter/descriptors/php.megalinter-descriptor.yml
  256:301   warning  line too long (389 > 300 characters)  (line-length)
  271:301   warning  line too long (302 > 300 characters)  (line-length)

megalinter/descriptors/repository.megalinter-descriptor.yml
  27:301    warning  line too long (666 > 300 characters)  (line-length)
  236:301   warning  line too long (408 > 300 characters)  (line-length)
  369:301   warning  line too long (345 > 300 characters)  (line-length)
  677:301   warning  line too long (306 > 300 characters)  (line-length)
  794:301   warning  line too long (374 > 300 characters)  (line-length)
  922:301   warning  line too long (316 > 300 characters)  (line-length)
  1522:301  warning  line too long (358 > 300 characters)  (line-length)
  1626:301  warning  line too long (346 > 300 characters)  (line-length)
  1633:301  warning  line too long (307 > 300 characters)  (line-length)

megalinter/descriptors/salesforce.megalinter-descriptor.yml
  55:301    warning  line too long (359 > 300 characters)  (line-length)
  179:301   warning  line too long (390 > 300 characters)  (line-length)
  191:301   warning  line too long (408 > 300 characters)  (line-length)
  195:301   warning  line too long (413 > 300 characters)  (line-length)

megalinter/descriptors/spell.megalinter-descriptor.yml
  237:301   warning  line too long (315 > 300 characters)  (line-length)
  566:301   warning  line too long (348 > 300 characters)  (line-length)

megalinter/descriptors/sql.megalinter-descriptor.yml
  27:301    warning  line too long (403 > 300 characters)  (line-length)

megalinter/descriptors/terraform.megalinter-descriptor.yml
  28:301    warning  line too long (330 > 300 characters)  (line-length)
  43:301    warning  line too long (330 > 300 characters)  (line-length)
  131:301   warning  line too long (346 > 300 characters)  (line-length)
  231:301   warning  line too long (328 > 300 characters)  (line-length)
  341:301   warning  line too long (307 > 300 characters)  (line-length)
  352:301   warning  line too long (386 > 300 characters)  (line-length)
  448:301   warning  line too long (302 > 300 characters)  (line-length)
  463:301   warning  line too long (334 > 300 characters)  (line-length)
  473:301   warning  line too long (525 > 300 characters)  (line-length)
  483:301   warning  line too long (315 > 300 characters)  (line-length)
  487:301   warning  line too long (436 > 300 characters)  (line-length)

megalinter/descriptors/tsx.megalinter-descriptor.yml
  15:27     warning  too few spaces inside empty brackets  (brackets)
  31:301    warning  line too long (475 > 300 characters)  (line-length)

megalinter/descriptors/typescript.megalinter-descriptor.yml
  23:27     warning  too few spaces inside empty brackets  (brackets)
  41:301    warning  line too long (475 > 300 characters)  (line-length)
  336:301   warning  line too long (314 > 300 characters)  (line-length)
  362:301   warning  line too long (315 > 300 characters)  (line-length)

megalinter/descriptors/yaml.megalinter-descriptor.yml
  38:301    warning  line too long (315 > 300 characters)  (line-length)

mkdocs.yml
  8:301     warning  line too long (654 > 300 characters)  (line-length)
  106:5     warning  wrong indentation: expected 6 but found 4  (indentation)
  109:5     warning  wrong indentation: expected 6 but found 4  (indentation)
  124:5     warning  wrong indentation: expected 6 but found 4  (indentation)

zizmor.yml
  1:1       warning  missing document start "---"  (document-start)

✅ Linters with no issues

actionlint, bash-exec, betterleaks, black, checkov, cspell, djlint, flake8, git_diff, grype, hadolint, htmlhint, isort, jscpd, jsonlint, markdown-table-formatter, mypy, npm-groovy-lint, osv-scanner, pylint, ruff, secretlint, shellcheck, shfmt, spectral, syft, trivy, trivy-sbom, trufflehog, v8r, v8r, xmllint, zizmor

See detailed reports in MegaLinter artifacts

MegaLinter is provided by OX Security

Please consider supporting MegaLinter by starring the repository.

- Remove the temporary diagnostic step merged with #9674
- @salesforce/plugin-code-analyzer 5.16.0 -> 5.17.0 (websocket-driver
  0.8.2) and npm-package-json-lint 11.0.1 -> 11.4.0 (minimatch 11.0.9)
- Ignore, with the reason, the advisories without a reachable fix:
  cross-spawn and ws locked by the Code Analyzer shrinkwrap (Windows-only
  injection, client-side pong DoS) and tar bundled in npm 11 (build-time
  extraction of registry tarballs only)

This branch was successfully deployed

1 active deployment
dev — c9094855 Deployed Dec 4, 2026 by nvuillam via MegaLinter #52668
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant