From 21af79c6e5ba6003a723602aa395d8a248baa5c2 Mon Sep 17 00:00:00 2001 From: Eli Schleifer <1265982+EliSchleifer@users.noreply.github.com> Date: Thu, 31 Oct 2024 09:51:29 -0700 Subject: [PATCH] Update trunk toolbox config to include additional direct config value - this better supports toolbox logging (#902) --- .trunk/trunk.yaml | 2 +- linters/trunk-toolbox/plugin.yaml | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index 8f3074b26..ac2fbcc1d 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -43,7 +43,7 @@ lint: # enabled linters inherited from github.com/trunk-io/configs plugin - definition-checker - eslint@9.13.0 - - trunk-toolbox@0.4.1 + - trunk-toolbox@0.5.0 disabled: - pylint # pylint diagnostics are too strict - semgrep diff --git a/linters/trunk-toolbox/plugin.yaml b/linters/trunk-toolbox/plugin.yaml index 561c98a7d..a2ff5097b 100644 --- a/linters/trunk-toolbox/plugin.yaml +++ b/linters/trunk-toolbox/plugin.yaml @@ -2,7 +2,7 @@ version: 0.1 downloads: - name: trunk-toolbox - version: 0.4.1 + version: 0.5.0 downloads: - os: linux: unknown-linux-gnu @@ -17,13 +17,14 @@ tools: - name: trunk-toolbox download: trunk-toolbox shims: [trunk-toolbox] - known_good_version: 0.4.1 + known_good_version: 0.5.0 lint: definitions: - name: trunk-toolbox description: Repository level linting tools main_tool: trunk-toolbox files: [ALL] + affects_cache: [toolbox.toml, log4rs.yaml] commands: - name: lint version: ">=0.4.1" @@ -33,7 +34,10 @@ lint: output: sarif batch: true success_codes: [0] + disable_upstream: false read_output_from: tmp_file + direct_configs: [toolbox.toml] + max_concurrency: 1 - name: lint run: trunk-toolbox --upstream=${upstream-ref} --results=${tmpfile} ${target} output: sarif