veracodecli 1.0.15 → 1.0.16
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 +4 -4
- data/VERSION +1 -1
- data/bin/veracodecli +14 -13
- data/veracodecli.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 69791b0d8ceb23e41bb1e9631471169f4c49f56a
|
|
4
|
+
data.tar.gz: 088e1dc9bf25486aec7ddc900eef3c33932bd762
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f49b9ffbffccd59f592b2c62a7f088c9101ffda828c64cffc2c8c0bf5be0059ef216611e5a05fe76b2c05a59ecb58d651069ef79cf54c58529d108a3664a35e
|
|
7
|
+
data.tar.gz: 8bc02e3e11b082678b479830293c33cc7c4df1c045830561254d5b526d01003fd9e237d6abf962bfcdadb12878a7b2504d0ee9c7631191c84ec369d64a2de008
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.16
|
data/bin/veracodecli
CHANGED
|
@@ -40,42 +40,43 @@ Commander.configure do
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
command :get_prescan_results do |c|
|
|
43
|
-
c.syntax = 'veracodecli get-prescan-results [app_id]'
|
|
43
|
+
c.syntax = 'veracodecli get-prescan-results --app_id [app_id]'
|
|
44
44
|
c.description = 'Downloads the prescan results from Veracode.'
|
|
45
|
-
c.
|
|
46
|
-
|
|
45
|
+
c.option '--app_id STRING', String, 'Application id'
|
|
46
|
+
c.action do |args,options|
|
|
47
|
+
fail 'Specify app_id.' unless options.app_id
|
|
47
48
|
VeracodeApiResults.get_prescan_results args.first
|
|
48
49
|
end
|
|
49
50
|
end
|
|
50
51
|
|
|
51
52
|
command :get_status do |c|
|
|
52
|
-
c.syntax = 'veracodecli get-status [app_id]'
|
|
53
|
+
c.syntax = 'veracodecli get-status --app_id [app_id]'
|
|
53
54
|
c.description = 'Gets scan state from Veracode.'
|
|
54
|
-
c.
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
c.option '--app_id STRING', String, 'Application id'
|
|
56
|
+
c.action do |args,options|
|
|
57
|
+
fail 'Specify app_id.' unless option.app_id
|
|
58
|
+
VeracodeApiResults.get_build_status options.app_id
|
|
57
59
|
end
|
|
58
60
|
end
|
|
59
61
|
|
|
60
62
|
command :get_report do |c|
|
|
61
|
-
c.syntax = 'veracodecli get_report [app_name]'
|
|
63
|
+
c.syntax = 'veracodecli get_report --app_name [app_name]'
|
|
62
64
|
c.description = 'Downloads the final scan report from Veracode.'
|
|
63
|
-
c.
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
c.option '--app_name STRING', String, 'Application name'
|
|
66
|
+
c.action do |args,options|
|
|
67
|
+
fail 'Specify app_name.' unless options.app_name
|
|
68
|
+
VeracodeApiMacros.get_report_macro options.app_name
|
|
66
69
|
end
|
|
67
70
|
end
|
|
68
71
|
|
|
69
72
|
command :get_pdf_report do |c|
|
|
70
73
|
c.syntax = 'veracodecli get_pdf_report --app_name [app_name] --option [option]'
|
|
71
|
-
# c.option '--app STRING', String, 'Upload report to slack?'
|
|
72
74
|
c.option '--slack_upload STRING', String, 'Upload report to slack?'
|
|
73
75
|
c.description = 'Downloads the final scan report in pdf format.'
|
|
74
76
|
c.action do |args, options|
|
|
75
77
|
abort 'Missing parameter --app_name' unless options.app_name
|
|
76
78
|
abort 'Please specify slack token in config.yml' if ((!defined? Settings.slack_token) && (options.slack_upload.eql? 'yes'))
|
|
77
79
|
abort 'Please specify slack channel in config.yml' if ((!defined? Settings.slack_channel) && (options.slack_upload.eql? 'yes'))
|
|
78
|
-
# abort 'Please specify an app' unless options.app
|
|
79
80
|
file = VeracodeApiMacros.get_pdf_macro options.app_name
|
|
80
81
|
Slack.send_to_slack file if (options.slack_upload.eql? 'yes')
|
|
81
82
|
end
|
data/veracodecli.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: veracodecli 1.0.
|
|
5
|
+
# stub: veracodecli 1.0.16 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "veracodecli"
|
|
9
|
-
s.version = "1.0.
|
|
9
|
+
s.version = "1.0.16"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|