Skip to content

Zis aes - Fix HMAC Calculation #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 162 commits into
base: rw/zis_aes
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
f36ca37
Merge PR #432: Throw ArgumentNullException in BZip2
Numpsy Apr 13, 2020
195b4e2
Merge PR#469: Add test for writing using a zero byte buffer
Numpsy May 31, 2020
97a317a
Merge PR #473: Add a Nuget badge to readme.md
Numpsy Jun 19, 2020
861a313
Merge PR #463: Improve support for Unix timestamps in ZIP archives
bastianeicher Jun 19, 2020
37c3a9e
Merge PR #468: Add test for adding empty folders to archives using Fa…
Numpsy Jun 19, 2020
4d8c4a9
Merge PR #467: Allow seeking a PartialInputStream to the very end
Helios-vmg Jun 19, 2020
00ee653
Merge PR #466: Improve the ZipFileStoreAesPartialRead test to test mu…
Numpsy Jun 19, 2020
5addf0f
Merge PR #465: Fixed bug in ZipAESStream.ReadBufferedData
Helios-vmg Jun 19, 2020
c7a91b8
Merge PR #453: Fix the 7-zip interop tests in the .Net 4.6 test build
Numpsy Jun 19, 2020
3c32813
Merge PR #461: Fix Exception doc comments
Numpsy Jun 19, 2020
4a5ae32
Merge PR #448: Fix unit test assert argument order
Numpsy Jun 19, 2020
4bbcb4b
Merge PR #364: Add nameEncoding parameter to Tar entries
itn3000 Jun 19, 2020
73aa23a
Merge PR #472: Allow ZipFile to accept empty strings as passwords whe…
Numpsy Jun 19, 2020
1a130a0
Merge PR #390: Override Ensure GZipOutputStream headers are written b…
Numpsy Jun 19, 2020
d506c55
Merge PR #435: Add unit test for ZipFile.Add(string fileName, string …
Numpsy Jun 19, 2020
23841d2
Merge PR #433: Restore directory timestamps when extracting with FastZip
Numpsy Jun 19, 2020
274df70
PR #450: Fix CA1200 code analyzer warnings
Numpsy Jun 19, 2020
ca33534
PR #445: Make InvalidHeaderException serializable
Numpsy Jun 19, 2020
32920f9
PR #422: Change ZipOutputStream.PutNextEntry to explicity validate th…
Numpsy Jun 19, 2020
7c4f517
PR #479: Streamline and update VB sample projects
Numpsy Jul 4, 2020
b5898dc
PR #477: Fix spelling errors in comments
Numpsy Jul 4, 2020
b6ab9f5
PR #476: Remove duplicated words in comments
Numpsy Jul 4, 2020
1e8fdfa
SharpZipLib is now using GH Discussions and no longer gitter.im
christophwille Aug 3, 2020
a11665d
Remove state of the union from 2017
christophwille Aug 3, 2020
2082f94
PR #498: Use string.Trim to trim strings (#498)
Numpsy Aug 6, 2020
70e2000
PR #494: Use the Range to test different compression levels in Inflat…
Numpsy Aug 7, 2020
b07ecb4
PR #489: Remove duplicate ICSharpCode.SharpZipLib.snk
Numpsy Aug 7, 2020
fd9e8a8
#488: Add [MemoryDiagnoser] to the zip input/output stream benchmark …
Numpsy Aug 7, 2020
75adef5
PR #455: Add FastZip.CreateZip with a leaveOpen parameter
Numpsy Aug 7, 2020
f593921
PR #458: Dispose of entry streams returned by ZipFile.GetInputStream
Numpsy Aug 7, 2020
3835f0c
PR #483: Suppress CA1707 warnings from LzwConstants
Numpsy Aug 7, 2020
bf4372a
PR #460: Account for AES overhead in compressed entry size (#460)
Numpsy Aug 7, 2020
24f948a
PR #402 Only convert entry.Name once when accessing updateIndex
AqlaSolutions Aug 7, 2020
71cc7bb
PR #502: Fix tests and ZipEntry DateTime Kind
piksel Aug 8, 2020
3491abb
PR #482: Add variants of FastZip.CreateZip taking IScanFilter instead…
Numpsy Aug 9, 2020
1a47326
PR #497: Transform new entry names using an INameTranform in ZipOutpu…
Numpsy Aug 9, 2020
cfc5112
PR #353: Fix ZipFile.TestLocalHeader CompressionMethod resolving for …
Numpsy Aug 9, 2020
59e3080
PR #380: Add support for AES encryption in FastZip.CreateZip
Numpsy Aug 9, 2020
33ab19b
PR #504: Fix warning about missing doc comment in FastZip.CreateZip
Numpsy Aug 9, 2020
96b4d86
PR #505: Expect ZipEntry clean name test to be positive
piksel Aug 9, 2020
63e7e70
Use github workflows for CI (#419)
piksel Aug 15, 2020
c557266
PR #201: Raise ProcessDirectory event for FastZip extract
Stevie-O Aug 15, 2020
83c80d2
PR #333: Handle unsupported compression methods in ZipInputStream better
Numpsy Aug 15, 2020
69ce65c
PR #346: Add a Security Policy
piksel Aug 15, 2020
118fa32
Fix master on-push workflow
piksel Aug 16, 2020
33cf8c4
Make healthy sourcelink nupkgs
piksel Aug 16, 2020
a6cdf09
PR #451: Minimize and update sample app package dependencies
Numpsy Aug 16, 2020
8eb94b1
PR #452: Ensure crypto streams are disposed in ZipFile.GetOutputStream
Numpsy Aug 16, 2020
61d3a21
PR #503: Consider AES overhead when testing encrypted folder entries
Numpsy Aug 16, 2020
0cbdef2
PR #519: Restrict path traversal on TarArchive extraction
piksel Oct 7, 2020
8f7d892
Update ICSharpCode.SharpZipLib.csproj
piksel Oct 7, 2020
a43d9ac
Add Codacy to PR workflow
piksel Oct 8, 2020
4f56780
Add Codacy to Push workflow
piksel Oct 8, 2020
d6735bd
Fix typo in Push workflow
piksel Oct 8, 2020
b1561a0
PR #523: Fix Codacy workflows
piksel Oct 8, 2020
6ffe3c1
PR #522: Use PackageIcon instead of PackageIconUrl in csproj
piksel Oct 8, 2020
716b913
PR #355: Wire up BZip2 compression support for Zip files
Numpsy Oct 8, 2020
1e351fc
PR #525: Update the sample projects to use the v1.3 release
Numpsy Oct 17, 2020
91050e6
PR #511: Move the 7zip helper functions into their own class for easi…
Numpsy Oct 17, 2020
9e02750
PR #509: Make PutNextEntry throw if the entry is AES and no password …
Numpsy Oct 17, 2020
ad02688
#PR 529: Add release workflow
piksel Oct 19, 2020
d0efee0
PR #530: Fix Codacy Workflows
piksel Oct 19, 2020
134b8f4
PR #539: Use securely generated random temporary file names
piksel Nov 21, 2020
7520a3f
PR #538: Use RNGCryptoServiceProvider for crypto headers
piksel Nov 21, 2020
ddc545b
PR #516: Improve CRC32 performance
nsgomez Nov 21, 2020
933c41c
PR #475: Fix updating zips with descriptor entries
piksel Nov 21, 2020
c5c187d
PR #475: Fix updating zips with descriptor entries
Numpsy Nov 21, 2020
ea941dd
PR #541: Update csproj for new release
piksel Nov 21, 2020
6170ef4
CI: run master build on release
piksel Nov 21, 2020
b7bc4e0
#542: Build and publish documentation on release
piksel Nov 22, 2020
fec479c
PR #553: Remove broken codacy integration
piksel Dec 19, 2020
f044a6c
PR #549: Add .NET Standard 2.1 target framework
0xced Feb 6, 2021
89e7bdd
PR #554: Skip CRC calculation for AES zip entries
piksel Feb 6, 2021
703c877
PR #546: Make pure private functions static
Numpsy Feb 6, 2021
33da791
PR #533: Convert the C# sample projects to PackageReference format
Numpsy Feb 6, 2021
1193672
PR #457: add basic async unit tests for the inflator/deflator streams
Numpsy Feb 6, 2021
3d93ae5
chore(ci): fix windows ci env restore
piksel Feb 13, 2021
b29bf56
chore(ci): remove config from matrix
piksel Feb 13, 2021
c814877
PR #510: Build the test bootstrapper app as netcoreapp3.1 instead of …
Numpsy Feb 13, 2021
3617fb9
PR #577: Throw ZipException in ZipAESStream instead of generic Exception
Numpsy Feb 21, 2021
85f20dc
PR #578: Fix typos in the StreamDecodingException doc comments
Numpsy Feb 21, 2021
06ff713
PR #517: Throw exception on Store+Descriptor entries
piksel Feb 21, 2021
f9bd53d
PR #588: Add a simple async read test for ZipFile
Numpsy Mar 7, 2021
c959373
PR #586: Convert VB sample projects to PackageReference format
Numpsy Mar 7, 2021
765eb69
PR #583: Restore entry times on FastZip extract
piksel Mar 7, 2021
1c1df7b
PR #575: Replace uses of new T[0] with Array.Empty<T>
Numpsy Mar 7, 2021
a4e4502
Remove custom nuget config
piksel Mar 7, 2021
5c4e4d3
PR #594: Remove the local nuget.config files from the test projects
Numpsy Mar 7, 2021
00c673e
PR #599: Use net46 as CI target framework for windows tests
piksel Mar 14, 2021
5ae4f10
Split build and pack in CI on push
piksel Mar 14, 2021
6e95ec2
PR #601: pass tests that are within time tolerance
piksel Mar 14, 2021
4cb5853
PR #602: Update test/coverage packages and push to codecov
piksel Mar 14, 2021
7ed87d1
PR #603: pass CreateZip tests that are within time tolerance
piksel Mar 14, 2021
87ffb39
chore(ci): only export coverage for release
piksel Apr 26, 2021
95b353f
test: retry zipcrypto password tests once (#614)
piksel Apr 27, 2021
1493f69
PR #605: Suppress CA1707 warnings in the Constants classes
Numpsy Apr 27, 2021
8ab21b0
PR #593: Simplify DropPathRoot and fix out of bounds issue
piksel Apr 27, 2021
d9fb8a4
PR 351: Add support for Filename field in GZip
piksel Apr 27, 2021
5eea92a
PR #616: Change the build status badge to reference github actions
Numpsy Apr 29, 2021
1b9fcfc
PR #611: Bzip input stream simple vectorization
konrad-kruczynski May 4, 2021
fa08c7d
PR #621: unify PR/push CI build actions
piksel May 8, 2021
99170e1
PR #587: Remove supported method checks from ZipEntry.CompressionMeth…
Numpsy May 8, 2021
7ac1fda
#579: Implement very simple ReadAsync in ZipAESStream
Numpsy May 8, 2021
dad484e
fix CI badge in README
piksel May 8, 2021
ffe69c0
PR #622: security fixes for v1.3.2
piksel May 8, 2021
34879be
update csproj for v1.3.2 release
piksel May 8, 2021
c65486c
PR #627: fix the expected/actual value ordering in unit tests
Numpsy May 11, 2021
51343ec
PR #626: make a couple of private functions static
Numpsy May 11, 2021
e839500
PR #625: Make BZip2Constants static instead of sealed
Numpsy May 11, 2021
232d690
PR #628: Limit code coverage to windows CI
piksel May 11, 2021
08c40e8
PR #604: Move the Password property from DeflaterOutputStream into Zi…
Numpsy May 13, 2021
8e4d144
PR #634: add an async version of the WriteZipOutputStream benchmark
Numpsy May 13, 2021
8c0a169
PR #636: Fix unstable tests and switch to dotcover
piksel May 14, 2021
ac96e60
fix(tar): create translated files in temp (#645)
piksel Jun 30, 2021
0cc20b4
docs(zip): fix ZipStrings typo (#648)
ForNeVeR Jul 8, 2021
f04d973
ci: add codeql analysis
piksel Aug 12, 2021
cd5310f
fix(bzip2): use explicit feature defs for vectorized memory move (#635)
modio-jackson Aug 12, 2021
2b8ff8f
update security policy
piksel Sep 8, 2021
a0e96de
test: add tests for tar path traversal
piksel Sep 18, 2021
5c3b293
fix: specialized tar extract traversal
piksel Sep 18, 2021
641f292
update csproj for v1.3.3 release
piksel Sep 18, 2021
a1423c4
ci: add manual dispatch and logging
piksel Sep 19, 2021
d21c998
ci: fix yaml typo
piksel Sep 19, 2021
1b1ab01
ci: include non-anno tags in version
piksel Sep 19, 2021
c086bc2
chore: add release notes tooling (#665)
piksel Sep 19, 2021
61d36ee
docs(zip): fix slash names in CleanName comment (#668)
ueli-werner Sep 20, 2021
b5b1a92
fix(tar): permit slashed output dir (#666)
piksel Sep 21, 2021
d31fac3
test: repeatability and refactoring (#671)
piksel Oct 9, 2021
d34e5c9
fix(zip): use ushort for ITaggedData.TagID (#669)
Numpsy Oct 9, 2021
6f7d973
chore: remove the test bootstrapper (#670)
Numpsy Oct 9, 2021
e1e1a91
feat(zip): ZipOutputStream async support (#574)
piksel Oct 9, 2021
612969e
feat(zip): better string encoding handling (#592)
piksel Oct 10, 2021
ff64d0a
feat(zip): enable ZipOuputStream to write precompressed files (#683)
Temtaime Nov 17, 2021
b368847
Bump SharpZipLib in /samples/ICSharpCode.SharpZipLib.Samples/cs/sz (#…
dependabot[bot] Feb 2, 2022
ca8c6de
Bump SharpZipLib (#715)
dependabot[bot] Feb 2, 2022
9e0d4a4
Bump SharpZipLib in /samples/ICSharpCode.SharpZipLib.Samples/cs/zf (#…
dependabot[bot] Feb 2, 2022
3677a63
fix(samples): bump lib versions to v1.3.3 (#720)
piksel Feb 10, 2022
05372be
ci: use server 2019 for win builds
piksel Feb 18, 2022
71fe846
ci: use server 2019 for win builds (#727)
piksel Feb 18, 2022
cc8dd78
fix(zip): dont fail test on 0 sizes and descriptor (#736)
piksel Mar 23, 2022
aee3b44
add openupm package badge
piksel Apr 27, 2022
e3bb2f3
feat(zip): make it possible to skip header tests (#689)
piksel Apr 28, 2022
e589b5e
fix(zip): 0 in zip64 local sizes using descriptors (#750)
piksel Apr 28, 2022
d843d6d
feat(tar): support for async streams (#746)
nathan-c May 24, 2022
b5b1b07
fix(zip): skip reading position for non-seekable async streams (#754)
piksel May 24, 2022
a41e066
fix(zip): explicitly specify hash method for Rfc2898DeriveBytes (#765)
yihezkel Aug 11, 2022
7411f3a
fix(tar): read full extended headers (#675)
piksel Aug 14, 2022
79614c5
fix: replace uses of obsolete method `RNGCryptoServiceProvider` (#766)
yihezkel Aug 16, 2022
bdec777
fix(tar): enable unix paths in tar RootPath (#582)
sensslen Aug 16, 2022
519ed73
fix(zip): handle iterating updated entries in ZipInputStream (#642)
piksel Aug 16, 2022
b314d3d
feat(gzip): add GzipOutputStream async support (#672)
piksel Sep 15, 2022
cea8b0d
prepare for v1.4.0 (#755)
piksel Sep 18, 2022
3c1b3ba
docs: fix circular refs and target fw (#775)
piksel Sep 18, 2022
338d57a
ci: build before generating docs
piksel Sep 18, 2022
214eec8
ci: run docs generation on windows
piksel Sep 18, 2022
b8c85b7
ci: use choco docfx on windows
piksel Sep 18, 2022
f6e1987
ci: fix typo in config path
piksel Sep 18, 2022
76eb6c4
ci: split docs gen to build/deploy
piksel Sep 18, 2022
d2a0c68
ci: fix config keys for deploy
piksel Sep 18, 2022
82c74c1
Add support for AES encryption
Numpsy Aug 18, 2019
5dd930e
Apply code refactoring suggested in review
remogloor Oct 18, 2022
ba5296b
Make it more explicit how big Large dummy data and small dummy data h…
remogloor Oct 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .codacy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
exclude_paths:
- 'docs/**/*'
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ indent_size = 2
end_of_line = lf
[*.{cmd, bat}]
end_of_line = crlf

[*.yml]
indent_style = space
indent_size = 2
165 changes: 165 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
name: Build and Test

on:
workflow_dispatch:
inputs:
tag:
description: 'Tag Ref'
required: true
pull_request:
branches: [ master ]
push:
branches: [ master ]
release:

jobs:
Build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
target: [netstandard2.0, netstandard2.1, net6.0]
env:
LIB_PROJ: src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.events.inputs.tag }}
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'

- name: Show .NET info
run: dotnet --info

- name: Build library (Debug)
run: dotnet build -c debug -f ${{ matrix.target }} ${{ env.LIB_PROJ }}

- name: Build library (Release)
run: dotnet build -c release -f ${{ matrix.target }} ${{ env.LIB_PROJ }}

Test:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
# Windows testing is combined with code coverage
os: [ubuntu, macos]
target: [net6.0]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup .NET Core
if: matrix.target == 'net6.0'
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'

- name: Restore test dependencies
run: dotnet restore

- name: Run tests (Debug)
run: dotnet test -c debug -f ${{ matrix.target }} --no-restore

- name: Run tests (Release)
run: dotnet test -c release -f ${{ matrix.target }} --no-restore


CodeCov:
name: Code Coverage
runs-on: windows-2019
env:
DOTCOVER_VER: 2021.1.2
DOTCOVER_PKG: jetbrains.dotcover.commandlinetools
COVER_SNAPSHOT: SharpZipLib.dcvr
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'

# NOTE: This is the temporary fix for https://github.com/actions/virtual-environments/issues/1090
- name: Cleanup before restore
run: dotnet clean ICSharpCode.SharpZipLib.sln && dotnet nuget locals all --clear

- name: Install codecov
run: nuget install -o tools -version ${{env.DOTCOVER_VER}} ${{env.DOTCOVER_PKG}}

- name: Add dotcover to path
run: echo "$(pwd)\tools\${{env.DOTCOVER_PKG}}.${{env.DOTCOVER_VER}}\tools" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: Run tests with code coverage
run: dotcover dotnet --output=${{env.COVER_SNAPSHOT}} --filters=-:ICSharpCode.SharpZipLib.Tests -- test -c release

- name: Create code coverage report
run: dotcover report --source=${{env.COVER_SNAPSHOT}} --reporttype=detailedxml --output=dotcover-report.xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.2.2
with:
files: dotcover-report.xml

- name: Upload coverage snapshot artifact
uses: actions/upload-artifact@v2
with:
name: Code coverage snapshot
path: ${{env.COVER_SNAPSHOT}}

Pack:
needs: [Build, Test, CodeCov]
runs-on: windows-latest
env:
PKG_SUFFIX: ''
PKG_PROJ: src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
PKG_PROPS: '/p:ContinuousIntegrationBuild=true /p:EmbedUntrackedSources=true'

steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.events.inputs.tag }}
fetch-depth: 0

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'

- name: Build library for .NET Standard 2.0
run: dotnet build -c Release -f netstandard2.0 ${{ env.PKG_PROPS }} ${{ env.PKG_PROJ }}
- name: Build library for .NET Standard 2.1
run: dotnet build -c Release -f netstandard2.1 ${{ env.PKG_PROPS }} ${{ env.PKG_PROJ }}
- name: Build library for .NET 6.0
run: dotnet build -c Release -f net6.0 ${{ env.PKG_PROPS }} ${{ env.PKG_PROJ }}

- name: Add PR suffix to package
if: ${{ github.event_name == 'pull_request' }}
run: echo "PKG_SUFFIX=-PR" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Set package version
continue-on-error: true
run: |-
$PKG_GIT_VERSION="$(git describe --tags --abbrev | % { $_.substring(1) })"
Write-Output "::notice::Git describe: $PKG_GIT_VERSION"
Write-Output "::notice::Package suffix: $env:PKG_SUFFIX"
$PKG_VERSION = "${PKG_GIT_VERSION}${env:PKG_SUFFIX}"
Write-Output "::notice::Package version: $PKG_VERSION"
Write-Output "PKG_VERSION=$PKG_VERSION" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Create nuget package
run: dotnet pack ${{ env.PKG_PROJ }} -c Release --output dist ${{ env.PKG_PROPS }} /p:Version=${{ env.PKG_VERSION }}

- name: Upload nuget package artifact
uses: actions/upload-artifact@v2
with:
name: Nuget package
path: dist/*.nupkg
71 changes: 71 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '40 7 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
63 changes: 63 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Workflow to execute when a new version is released
name: Release

on:
release:

# Used for testing and manual execution
workflow_dispatch:
inputs:
tag:
description: 'Tag Ref'
required: true

jobs:
build:
runs-on: windows-latest
name: Generate DocFX documentation
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.events.inputs.tag }}

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'

- name: Build project
run: dotnet build -f netstandard2.0 src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj

- name: Install docfx
run: choco install docfx

- name: Build Documentation
run: docfx docs/help/docfx.json --warningsAsErrors

- name: Upload documentation as artifact
uses: actions/upload-artifact@v2
with:
name: site
path: docs/help/_site

deploy:
needs: [build] # The second job must depend on the first one to complete before running and uses ubuntu-latest instead of windows.
runs-on: ubuntu-latest
name: Update github pages docs
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Download Artifacts # The built project is downloaded into the 'site' folder.
uses: actions/download-artifact@v1
with:
name: site

- name: Publish documentation to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: site
target-folder: help
clean: false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,4 @@ paket-files/
/test/ICSharpCode.SharpZipLib.TestBootstrapper/Properties/launchSettings.json
_testRunner/
docs/help/api/.manifest
/benchmark/ICSharpCode.SharpZipLib.Benchmark/BenchmarkDotNet.Artifacts/results
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ install:
# - nuget restore ICSharpCode.SharpZipLib.sln
# - nuget install NUnit.Console -Version 3.8.0 -OutputDirectory _testRunner
script:
- dotnet build -f netstandard2 src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
- dotnet build -f netstandard2.0 src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
- dotnet run -c Debug -f netcoreapp2 -p test/ICSharpCode.SharpZipLib.TestBootstrapper/ICSharpCode.SharpZipLib.TestBootstrapper.csproj -- --where "class !~ WindowsNameTransformHandling & test !~ ZipEntryFactoryHandling.CreatedValues & test !~ ZipNameTransformHandling.FilenameCleaning" --result=docs/nunit3-test-results-debug.xml
- dotnet run -c Release -f netcoreapp2 -p test/ICSharpCode.SharpZipLib.TestBootstrapper/ICSharpCode.SharpZipLib.TestBootstrapper.csproj -- --where "class !~ WindowsNameTransformHandling & test !~ ZipEntryFactoryHandling.CreatedValues & test !~ ZipNameTransformHandling.FilenameCleaning" --result=docs\nunit3-test-results-release.xml
# - dotnet test test/ICSharpCode.SharpZipLib.Tests/ICSharpCode.SharpZipLib.Tests.csproj
# - xbuild /p:Configuration=Release ICSharpCode.SharpZipLib.sln
# - mono ./packages/NUnit.ConsoleRunner.3.2.1/tools/nunit3-console.exe --framework=mono-4.0 --labels=All --result=./Documentation/nunit3-test-results-travis.xml ./bin/Release/ICSharpCode.SharpZipLib.Tests.dll
after_script:
- dotnet pack -f netstandard2 -o _dist/ src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
- dotnet pack -f netstandard2.0 -o _dist/ src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
#cache:
# directories:
# - bin
Expand Down
6 changes: 0 additions & 6 deletions ICSharpCode.SharpZipLib.sln
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ICSharpCode.SharpZipLib", "
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ICSharpCode.SharpZipLib.Tests", "test\ICSharpCode.SharpZipLib.Tests\ICSharpCode.SharpZipLib.Tests.csproj", "{82211166-9C45-4603-8E3A-2CA2EFFCBC26}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ICSharpCode.SharpZipLib.TestBootstrapper", "test\ICSharpCode.SharpZipLib.TestBootstrapper\ICSharpCode.SharpZipLib.TestBootstrapper.csproj", "{535D7365-C5B1-4253-9233-D72D972CA851}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ICSharpCode.SharpZipLib.Benchmark", "benchmark\ICSharpCode.SharpZipLib.Benchmark\ICSharpCode.SharpZipLib.Benchmark.csproj", "{C51E638B-DDD0-48B6-A6BD-EBC4E6A104C7}"
EndProject
Global
Expand All @@ -33,10 +31,6 @@ Global
{82211166-9C45-4603-8E3A-2CA2EFFCBC26}.Debug|Any CPU.Build.0 = Debug|Any CPU
{82211166-9C45-4603-8E3A-2CA2EFFCBC26}.Release|Any CPU.ActiveCfg = Release|Any CPU
{82211166-9C45-4603-8E3A-2CA2EFFCBC26}.Release|Any CPU.Build.0 = Release|Any CPU
{535D7365-C5B1-4253-9233-D72D972CA851}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{535D7365-C5B1-4253-9233-D72D972CA851}.Debug|Any CPU.Build.0 = Debug|Any CPU
{535D7365-C5B1-4253-9233-D72D972CA851}.Release|Any CPU.ActiveCfg = Release|Any CPU
{535D7365-C5B1-4253-9233-D72D972CA851}.Release|Any CPU.Build.0 = Release|Any CPU
{C51E638B-DDD0-48B6-A6BD-EBC4E6A104C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C51E638B-DDD0-48B6-A6BD-EBC4E6A104C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C51E638B-DDD0-48B6-A6BD-EBC4E6A104C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# SharpZipLib [![Build status](https://ci.appveyor.com/api/projects/status/wuf8l79mypqsbor3/branch/master?svg=true)](https://ci.appveyor.com/project/icsharpcode/sharpziplib/branch/master) [![Join the chat at https://gitter.im/icsharpcode/SharpZipLib](https://badges.gitter.im/icsharpcode/SharpZipLib.svg)](https://gitter.im/icsharpcode/SharpZipLib?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

The SharpZipLib project is looking for a new maintainer - please read [State of the Union August 2017](https://github.com/icsharpcode/SharpZipLib/issues/187)
# SharpZipLib [![Build Status](https://github.com/icsharpcode/SharpZipLib/actions/workflows/build-test.yml/badge.svg?branch=master)](https://github.com/icsharpcode/SharpZipLib/actions/workflows/build-test.yml) [![NuGet Version](https://img.shields.io/nuget/v/SharpZipLib.svg)](https://www.nuget.org/packages/SharpZipLib/) [![openupm](https://img.shields.io/npm/v/org.icsharpcode.sharpziplib?label=openupm&registry_uri=https://package.openupm.com)](https://openupm.com/packages/org.icsharpcode.sharpziplib/)

Introduction
------------
Expand Down
12 changes: 12 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Security Policy

## Supported Versions

| Version | Supported |
| ------- | ------------------ |
| 1.3.x | :white_check_mark: |
| < 1.3 | :x: |

## Reporting a Vulnerability

Send an e-mail to sharpziplib@containrrr.dev
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: '{build}'
image: Visual Studio 2017
image: Visual Studio 2019
configuration:
- Debug
- Release
Expand Down Expand Up @@ -31,4 +31,4 @@ test_script:
artifacts:
- path: docs\help\_site
type: zip
name: Documentation
name: Documentation
Binary file added assets/sharpziplib-nuget-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading