@codacy/tools-checkov-3 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +5 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -11189,6 +11189,11 @@ var adapter = {
11189
11189
  const useLocal = codacyConfig.useLocalConfigurationFile && codacyConfig.localConfigurationFile;
11190
11190
  if (useLocal) {
11191
11191
  args.push("--config-file", codacyConfig.localConfigurationFile);
11192
+ } else if (codacyConfig.patterns.length === 0) {
11193
+ ctx.logger.info("Skipping analysis: no local config and no patterns enabled", {
11194
+ toolId: TOOL_ID
11195
+ });
11196
+ return buildResult(startedAt, /* @__PURE__ */ new Date(), issues, errors, ctx.targetFiles.length);
11192
11197
  }
11193
11198
  for (const file of ctx.targetFiles) {
11194
11199
  args.push("-f", import_path.default.resolve(ctx.repositoryRoot, file));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/tools-checkov-3",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Checkov adapter — CLI-mode IaC security scanner",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,7 +8,7 @@
8
8
  "dist"
9
9
  ],
10
10
  "dependencies": {
11
- "@codacy/tooling": "0.2.1"
11
+ "@codacy/tooling": "0.3.0"
12
12
  },
13
13
  "license": "MIT",
14
14
  "author": "Codacy <support@codacy.com> (https://www.codacy.com)",