veracodecli 1.0.2 → 1.0.3
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 +3 -2
- data/veracodecli.gemspec +1 -1
- 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: 811beb23739dc554d819fa0cd449c1e69c8360b5
|
4
|
+
data.tar.gz: ca688ea3db7ef0e702909b284fa3b69aa40f24d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 918c0b7bffd492a8eff94ee1a34dde27e8dab7e129fef8aa4562aa2096a1a7036fa248a01e4648b1bc5b4b5baa074db76ace34869dba0d5170001fdf37bc9246
|
7
|
+
data.tar.gz: eeac02435ee203cb8ef793283c9f8af5ac56bd25d010c2d9419a28c8bec9444a4868a1c67f4c7297261fd29a73e969bf2061de91aa297d859c72d864e33875e0
|
data/lib/veracodecli/api.rb
CHANGED
@@ -15,7 +15,8 @@ module VeracodeApiBase
|
|
15
15
|
|
16
16
|
def get_repo_archive(url)
|
17
17
|
directory = "/tmp/sast_clone"
|
18
|
-
`
|
18
|
+
`cd /tmp; zip -r sast_upload.zip sast_clone`
|
19
|
+
# `git archive --remote #{url} --format=tar -o #{directory}/sast_upload.tar master`
|
19
20
|
end
|
20
21
|
end
|
21
22
|
|
@@ -88,7 +89,7 @@ module VeracodeApiMacros
|
|
88
89
|
include VeracodeApiResults
|
89
90
|
|
90
91
|
def submit_scan_macro(app_name, business_criticality, business_unit, team)
|
91
|
-
archive_path = "/tmp/
|
92
|
+
archive_path = "/tmp/sast_upload.zip"
|
92
93
|
app_id = get_app_id(app_name)
|
93
94
|
if app_id.nil?
|
94
95
|
app_id = create_app_profile(app_name, business_criticality, business_unit, team)
|
data/veracodecli.gemspec
CHANGED