fastlane-plugin-dependency_check_ios_analyzer 0.2.0 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf7e84c41d0957bf58d0109b283977bcb4b439541e916dd2b6835ec45e378d1b
4
- data.tar.gz: 5a8b9429290bbeaa42422708adbd119c7968b3d9d0c63f0c29eda52e7c860ff6
3
+ metadata.gz: 0c616a1b00b47f1a1617d2d76d68ed0ec3c852dd7ad98063b7642701938fe1c2
4
+ data.tar.gz: dfedd536f98aa734ee7b77e23c728c7159667853a061fcf22f314c2a00f8ef6d
5
5
  SHA512:
6
- metadata.gz: 7eca0a1937dc598c2600d7e8d48cd438dffb2929842d904bc400bde7515c8128c6c4c47a4262ce932429c8828bb8609fe675d8075f4371fd5c196dad1c4ef16f
7
- data.tar.gz: f535298d2316688ce33e7557efe3565c20210c867619443b7090f0123cdd487bc290e021e8e389f17684471752dad32b2292f4e94556cf706f7b6d898d9492b0
6
+ metadata.gz: e8d13d7abadb6013b7e94d369f7c53e989b362dabe36af1992da3939cbd71b21ddec902e8582de9b72bf4eaeb892fa537d55fce3e130187786dc96a8f2481be6
7
+ data.tar.gz: 8310cd0d2fba159280ebf3c52eef846ec99c1b0d2d3ab5c59c4547194478377a269d92f9e0dc99831c4c1ad9466c62581ca5ae0381baf915aed1521dc221bc3d
data/README.md CHANGED
@@ -11,17 +11,17 @@ This analyzer is considered experimental. While it may be useful and provide val
11
11
  ## Parameters
12
12
 
13
13
  | **Key** | **Description** | **Default** |
14
- | ------|-------------- | --------- |
14
+ | ------- |---------------- | ----------- |
15
15
  | `skip_spm_analysis` | Skip analysis of `SPM` dependencies | `false` |
16
16
  | `skip_pods_analysis` | Skip analysis of `CocoaPods` dependencies | `false` |
17
17
  | `spm_checkouts_path` | Path to Swift Packages, if they are resolved | |
18
- | `pod_file_lock_path` | Path to the `Podfile.lock` file. **Not implemented** | |
18
+ | `pod_file_lock_path` | Path to the `Podfile.lock` file. **Not implemented yet** | |
19
19
  | `project_path` | Path to the directory that contains an Xcode project, workspace or package. Defaults to the `root` | |
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` | Specify the required version of DependencyCheck analyzer. **Not recommended** | |
24
- | `rsa_key` | Specify the RSA_KEY of DependencyCheck analyzer download. **Not recommended** | |
23
+ | `cli_version` | Overwrite the version of `DependencyCheck` analyzer | `6.1.6` |
24
+ | `gpg_key` | Overwrite the GPG key to verify the cryptographic integrity of the requested `cli_version` | |
25
25
  | `verbose` | The file path to write verbose logging information | |
26
26
  | `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 | |
27
27
  | `junit_fail_on_cvss` | Specifies the CVSS score that is considered a failure when generating the junit report | |
@@ -108,20 +108,20 @@ module Fastlane
108
108
  key: :output_types,
109
109
  description: 'Comma separated list of the output types (e.g. html, xml, csv, json, junit, sarif, all)',
110
110
  optional: true,
111
- default_value: 'SARIF',
111
+ default_value: 'sarif',
112
112
  is_string: true,
113
113
  type: String
114
114
  ),
115
115
  FastlaneCore::ConfigItem.new(
116
116
  key: :cli_version,
117
- description: 'Specify the required version of DependencyCheck analyzer. Not recommended',
117
+ description: 'Overwrite the version of DependencyCheck analyzer. Not recommended',
118
118
  optional: true,
119
119
  is_string: true,
120
120
  type: String
121
121
  ),
122
122
  FastlaneCore::ConfigItem.new(
123
- key: :rsa_key,
124
- description: 'Specify the RSA_KEY of DependencyCheck analyzer download. Not recommended',
123
+ key: :gpg_key,
124
+ description: 'Overwrite the GPG key to verify the cryptographic integrity of the requested cli_version',
125
125
  optional: true,
126
126
  is_string: true,
127
127
  type: String
@@ -11,7 +11,7 @@ module Fastlane
11
11
  repo = 'https://github.com/jeremylong/DependencyCheck'
12
12
  name = 'dependency-check'
13
13
  version = params[:cli_version] ? params[:cli_version] : '6.1.6'
14
- rsa_key = params[:rsa_key] ? params[:rsa_key] : 'F9514E84AE3708288374BBBE097586CFEA37F9A6'
14
+ gpg_key = params[:gpg_key] ? params[:gpg_key] : 'F9514E84AE3708288374BBBE097586CFEA37F9A6'
15
15
  base_url = "#{repo}/releases/download/v#{version}/#{name}-#{version}-release"
16
16
  bin_path = "#{params[:output_directory]}/#{name}/bin/#{name}.sh"
17
17
  zip_path = "#{params[:output_directory]}/#{name}.zip"
@@ -32,7 +32,7 @@ module Fastlane
32
32
  curl = Curl.get(asc_url) { |curl| curl.follow_location = true }
33
33
  File.open(asc_path, 'w+') { |f| f.write(curl.body_str) }
34
34
 
35
- verify_cryptographic_integrity(asc_path: asc_path, rsa_key: rsa_key)
35
+ verify_cryptographic_integrity(asc_path: asc_path, gpg_key: gpg_key)
36
36
 
37
37
  unzip(file: zip_path, params: params)
38
38
 
@@ -79,10 +79,10 @@ module Fastlane
79
79
  end
80
80
 
81
81
  # https://jeremylong.github.io/DependencyCheck/dependency-check-cli/
82
- def self.verify_cryptographic_integrity(asc_path:, rsa_key:)
82
+ def self.verify_cryptographic_integrity(asc_path:, gpg_key:)
83
83
  UI.message("🕵️ Verifying the cryptographic integrity")
84
84
  # Import the GPG key used to sign all DependencyCheck releases
85
- Actions.sh("gpg --keyserver hkp://keys.gnupg.net --recv-keys #{rsa_key}")
85
+ Actions.sh("gpg --keyserver hkp://keys.gnupg.net --recv-keys #{gpg_key}")
86
86
  # Verify the cryptographic integrity
87
87
  Actions.sh("gpg --verify #{asc_path}")
88
88
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module DependencyCheckIosAnalyzer
3
- VERSION = '0.2.0'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-dependency_check_ios_analyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Alter-Pesotskiy