Skip to content

Commit e0b9ef1

Browse files
committed
Added functionality to remove the packager binary itself from the output zip
1 parent a63e5cb commit e0b9ef1

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,12 @@ func zipSource(source string, target string, testsPath string) error {
176176
return nil
177177
}
178178

179+
// avoid processing the Veracode JavaScript Packager binary itself - in case it is copied into the
180+
// directory where the JS app resides
181+
if strings.Contains(path, "veracode-js-packager") || strings.Contains(path, "vc-js-packager"){
182+
return nil
183+
}
184+
179185
// 3. Create a local file header
180186
header, err := zip.FileInfoHeader(info)
181187
if err != nil {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
not really a binary!

todo.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010

1111
- Put the `frontend` in a different zip if is part of the backend
1212
- See the upload here: 00659749, https://analysiscenter.veracode.com/auth/index.jsp#ReviewResultsAllFlaws:88684:1596933:23430557:23401801:23417451::5032891
13+
14+
- Test if unsigned binaries lead to issues in Windows

0 commit comments

Comments
 (0)