fastlane-plugin-dependency_check_ios_analyzer 1.1.0 → 1.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ef35dee5ad3ab22fd56bfaf812d32cd3583eafaa89774396d564a62f6631230
4
- data.tar.gz: c44a3437fe94b288b9ea0cbf8dce854a5e12b7ee3c23a197a6288be659a81ab1
3
+ metadata.gz: 7558dd5b5b9ea0f549e3db5b52b55b7e92f2a09f416c0c8d887af72fbf8ca957
4
+ data.tar.gz: 3dc1036d2ac5c6aaeb6190e4b2d9f15fd747ff3e716e21248aba0228e30d3ff4
5
5
  SHA512:
6
- metadata.gz: e9a8999284bec6d083ac6fc8bf2d77ac5b55b8edbf5cadfd6ce6a43b4ab6cd105c24d7820294bfc37ec768d364562095fa1e87ddbcc6a39aaf88133c0eb93050
7
- data.tar.gz: 59dc152c71bc7fe5b6aa00687cfd60dd7fee57ee5370243d982ca5639dffa9e62f5877b9b213612632d748e2e4108c0ffcb3a02594fa750fab38f3e5e3fdee4c
6
+ metadata.gz: af7f6ea2260834ae295d95263fae7735daafd909592fc78d561f1cf79f544d7e1f700bec73d781a9d1285f1abc16c123554a5d5824e3ee9a4aa68c54b5e3c9b7
7
+ data.tar.gz: 1000a9c5781c6a19d25f0c1d86f82d0cd9f2b7464d1c7813cbc3d78e9b588686abcb4ccebfb29e01cc55b006a48d47e91db1cbb86d4baa552bcd882dca916a8a
data/README.md CHANGED
@@ -20,8 +20,7 @@ This analyzer is considered experimental. While it may be useful and provide val
20
20
  | `project_name` | The project's name | `DependencyCheck` |
21
21
  | `output_directory` | The directory in which all reports will be stored | `dependency-check` |
22
22
  | `output_types` | Comma separated list of the output types (e.g. `html`, `xml`, `csv`, `json`, `junit`, `sarif`, `all`) | `sarif` |
23
- | `cli_version` | Overwrite the version of `DependencyCheck` analyzer | `6.1.6` |
24
- | `verify_integrity` | Verify the cryptographic integrity of the tool before starting an analysis | `false` |
23
+ | `cli_version` | Overwrite the version of `DependencyCheck` analyzer | `6.2.2` |
25
24
  | `verbose` | The file path to write verbose logging information | |
26
25
  | `fail_on_cvss` | Specifies if the build should be failed if a CVSS score above a specified level is identified. Since the CVSS scores are 0-10, by default the build will never fail | `11` |
27
26
  | `junit_fail_on_cvss` | Specifies the CVSS score that is considered a failure when generating the junit report | `0` |
@@ -114,13 +114,6 @@ module Fastlane
114
114
  is_string: true,
115
115
  type: String
116
116
  ),
117
- FastlaneCore::ConfigItem.new(
118
- key: :verify_integrity,
119
- description: 'Verify the cryptographic integrity of the tool before starting an analysis',
120
- optional: true,
121
- is_string: false,
122
- type: Boolean
123
- ),
124
117
  FastlaneCore::ConfigItem.new(
125
118
  key: :verbose,
126
119
  description: 'The file path to write verbose logging information',
@@ -10,7 +10,7 @@ module Fastlane
10
10
  def self.install(params)
11
11
  repo = 'https://github.com/jeremylong/DependencyCheck'
12
12
  name = 'dependency-check'
13
- version = params[:cli_version] ? params[:cli_version] : '6.1.6'
13
+ version = params[:cli_version] ? params[:cli_version] : '6.2.2'
14
14
  base_url = "#{repo}/releases/download/v#{version}/#{name}-#{version}-release"
15
15
  bin_path = "#{params[:output_directory]}/#{name}/bin/#{name}.sh"
16
16
  zip_path = "#{params[:output_directory]}/#{name}.zip"
@@ -25,10 +25,6 @@ module Fastlane
25
25
  File.open(zip_path, 'w+') { |f| f.write(curl.body_str) }
26
26
  end
27
27
 
28
- if params[:verify_integrity]
29
- verify_cryptographic_integrity(zip_path: zip_path, base_url: base_url)
30
- end
31
-
32
28
  unzip(file: zip_path, params: params)
33
29
 
34
30
  FileUtils.rm_rf(zip_path)
@@ -63,26 +59,6 @@ module Fastlane
63
59
  end
64
60
  end
65
61
  end
66
-
67
- def self.verify_cryptographic_integrity(zip_path:, base_url:)
68
- asc_url = "#{base_url}.zip.asc"
69
- UI.message("🚀 Downloading associated GPG signature file: #{asc_url}")
70
- curl = Curl.get(asc_url) { |curl| curl.follow_location = true }
71
-
72
- asc_path = "#{zip_path}.asc"
73
- File.open(asc_path, 'w+') { |f| f.write(curl.body_str) }
74
-
75
- # https://jeremylong.github.io/DependencyCheck/dependency-check-cli/
76
- gpg_key = 'F9514E84AE3708288374BBBE097586CFEA37F9A6'
77
-
78
- UI.message("🕵️ Verifying the cryptographic integrity")
79
- # Import the GPG key used to sign all DependencyCheck releases
80
- Actions.sh("gpg --keyserver hkp://keys.gnupg.net --recv-keys #{gpg_key}")
81
- # Verify the cryptographic integrity
82
- Actions.sh("gpg --verify #{asc_path}")
83
-
84
- FileUtils.rm_rf(asc_path)
85
- end
86
62
  end
87
63
  end
88
64
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module DependencyCheckIosAnalyzer
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-dependency_check_ios_analyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Alter-Pesotskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-21 00:00:00.000000000 Z
11
+ date: 2021-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curb