Skip to content

Commit

Permalink
Set DeferAuth for zip file (#8)
Browse files Browse the repository at this point in the history
* Set DeferAuth for zip file

* Update Go version to 1.21 for govulncheck

* Update go-version to 1.21 for tests

---------

Co-authored-by: Sedat Aktas <sedat@binalyze.com>
  • Loading branch information
sedataktas and Sedat Aktas committed Mar 8, 2024
1 parent 95bae86 commit a003353
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.20.5"
go-version: "1.21"

- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
Expand All @@ -39,7 +39,7 @@ jobs:
[windows-latest, windows],
]
arch: [amd64]
go-version: ["1.20.5"]
go-version: ["1.21"]
runs-on: ${{ matrix.os[0] }}
name: Test (go${{ matrix.go-version }}, ${{ matrix.os[1] }}, ${{ matrix.arch }})
defaults:
Expand Down
1 change: 1 addition & 0 deletions bizip.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ func (bz *Bizip) createUnzipReader(file *os.File) (io.ReadCloser, error) {
}

zipFile := zipReader.File[0]
zipFile.DeferAuth = true

if bz.Password != "" {
zipFile.SetPassword(bz.Password)
Expand Down

0 comments on commit a003353

Please sign in to comment.