Skip to content

Commit 044e9f6

Browse files
committed
Accommodate zip errors
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent f3c2c4c commit 044e9f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/action/archive_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ func TestScanArchive(t *testing.T) {
261261
}
262262

263263
func extractError(e error) error {
264-
if strings.Contains(e.Error(), "not a valid gzip archive") {
264+
if strings.Contains(e.Error(), "not a valid gzip archive") || strings.Contains(e.Error(), "not a valid zip archive") {
265265
return nil
266266
}
267267
return e

0 commit comments

Comments
 (0)