veracodecli 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/veracodecli/api.rb +6 -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: e20391d9109c4c847d695a54997d90f34280a794
|
4
|
+
data.tar.gz: d985fc3187d985fbcca136c34aa0f7d0922eab64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 377363318ba6e589b59c23d80d001fa0c7c1350abb4223006eb7d24085c4e72b76c1f0df80a64e9ede46dce508ef149f6828a9a494ae66297fd2cbe83a310af0
|
7
|
+
data.tar.gz: 45f6427f37d59966ddad45c93294820da610784eff07b556aa0aa11f88798edad0ae65c7a52127c5091f4786cfcfba270fb6c5b3876d1715aa7b2778e6ddbb78
|
data/lib/veracodecli/api.rb
CHANGED
@@ -34,8 +34,12 @@ module VeracodeApiScan
|
|
34
34
|
|
35
35
|
def get_app_id(app_name)
|
36
36
|
app_list = veracode_api_request 'getapplist.do', include_user_info: 'true'
|
37
|
-
scan = app_list.scan(/app_id=\"(.+)\" app_name=\"#{app_name}\"/)
|
38
|
-
|
37
|
+
scan = app_list.body.scan(/app_id=\"(.+)\" app_name=\"#{app_name}\"/)
|
38
|
+
begin
|
39
|
+
app_id = scan[0][0]
|
40
|
+
rescue
|
41
|
+
app_id = nil
|
42
|
+
end
|
39
43
|
app_id
|
40
44
|
end
|
41
45
|
|