Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
85f65ed
feat: validate input set; don't allow passwords exceeding max bCrypt …
ChrisMcKee Apr 1, 2025
d3112f1
feat: Add/Update overloads so we're utilising the allocated buffer re…
ChrisMcKee Apr 1, 2025
d91243e
feat: move the legacy pre-span code into its own file instead
ChrisMcKee Apr 1, 2025
c07bce0
fix: xmldoc
ChrisMcKee Apr 1, 2025
671dfe3
chore: cleanup benchmarks
ChrisMcKee Apr 1, 2025
6d352ed
rejig
ChrisMcKee Apr 2, 2025
a464094
Benchmarks
ChrisMcKee Apr 2, 2025
b1059a2
Switch func to a bog standard delegate (looks neater in compiler stat…
ChrisMcKee Apr 2, 2025
8892e94
Work in progress
ChrisMcKee May 7, 2025
87c54dc
chore: bulk package/actions update
ChrisMcKee May 7, 2025
e0172f6
feat: Memory safety changes
ChrisMcKee Sep 8, 2025
edbb46f
.net 10
ChrisMcKee Nov 11, 2025
fda407c
chore: cleanup
ChrisMcKee Nov 12, 2025
ee7982e
chore: packages
ChrisMcKee Nov 12, 2025
2925c1a
chore: jiggling benchmark to bloody work
ChrisMcKee Nov 12, 2025
b5fabe6
chore: use built in compiler flags
ChrisMcKee Nov 12, 2025
aea4f72
rm old app
ChrisMcKee Nov 12, 2025
7696287
Compiler statements change to lump standard in with framework; not su…
ChrisMcKee Nov 12, 2025
8ea268d
benchmark fettling
ChrisMcKee Nov 12, 2025
4dc0e53
Add a smaller benchmark project for comparing releases; this will all…
ChrisMcKee Nov 12, 2025
f86f927
Add netstandard supporting code back in
ChrisMcKee Nov 12, 2025
5300270
more benchmark/compiler statement fiddling
ChrisMcKee Nov 12, 2025
3ffa1ba
more benchmark fettling so I dont have to set the version in multiple…
ChrisMcKee Nov 12, 2025
79a8a63
csproj faf, nest files
ChrisMcKee Nov 12, 2025
9f025f1
Benchy sans boat
ChrisMcKee Nov 12, 2025
68e4e31
benchmark faffing with csproj defaults
ChrisMcKee Nov 12, 2025
4ff7db5
Remove pre net462 (minimum viable System.Memory package support)
ChrisMcKee Nov 13, 2025
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
20 changes: 10 additions & 10 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: 'Harden Runner'
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit

- name: 'Checkout'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.

- name: 'Setup .NET SDK'
uses: actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # v4.2.0
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
with:
dotnet-version: 9.0.x

Expand All @@ -51,7 +51,7 @@ jobs:
run: dotnet build --configuration Debug --no-restore

- name: Upload Build Artifacts
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: build-artifacts
path: |
Expand All @@ -63,17 +63,17 @@ jobs:

- name: 'Test'
id: test
run: dotnet test --no-build --restore --collect:"XPlat Code Coverage" --logger junit tests/UnitTests/BCrypt.Net.UnitTests.csproj
run: dotnet test --restore --collect:"XPlat Code Coverage" --logger junit --configuration Debug

- name: 'Create test summary'
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
with:
paths: tests/**/TestResults.xml
paths: tests/UnitTests/**/TestResults.xml
show: "fail, skip"
if: always()

- name: 'Generate Coverage Reports'
uses: danielpalme/ReportGenerator-GitHub-Action@c38c522d4b391c1b0da979cbb2e902c0a252a7dc # 5.4.3
uses: danielpalme/ReportGenerator-GitHub-Action@c4c5175a441c6603ec614f5084386dabe0e2295b # v5.4.12
with:
reports: "tests/**/coverage.cobertura.xml"
targetdir: "${{ github.workspace }}"
Expand All @@ -98,7 +98,7 @@ jobs:
thresholds: "10 30"

- name: Upload Code Coverage Results
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: coverage-results
path: |
Expand All @@ -107,13 +107,13 @@ jobs:
retention-days: 5

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@170bf24d20d201b842d7a52403b73ed297e6645b # v2.18.0
uses: EnricoMi/publish-unit-test-result-action@afb2984f4d89672b2f9d9c13ae23d53779671984 # v2.19.0
if: always()
with:
files: "tests/**/TestResults.xml"

- name: Upload Test Artifacts
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: test-results
path: "tests/**/TestResults.xml"
Expand Down
168 changes: 0 additions & 168 deletions .github/workflows/ci-manual-build-test-sign.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,23 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit

- name: 'Checkout repository'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.

- name: 'Setup .NET SDK'
uses: actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # v4.2.0
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
with:
dotnet-version: 9.0.x

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2
uses: github/codeql-action/init@d3678e237b9c32a6c9bffb3315c335f976f3549f # v3.30.2
with:
languages: ${{ matrix.language }}

Expand All @@ -75,4 +75,4 @@ jobs:
- run: dotnet build --configuration CodeQL /p:UseSharedCompilation=false /t:rebuild

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2
uses: github/codeql-action/analyze@d3678e237b9c32a6c9bffb3315c335f976f3549f ## v3.30.2
6 changes: 3 additions & 3 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit

- name: 'Checkout Repository'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: 'Dependency Review'
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0
uses: actions/dependency-review-action@595b5aeba73380359d98a5e087f648dbb0edce1b # v4.7.3
2 changes: 1 addition & 1 deletion .github/workflows/devskim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit
- uses: actions/checkout@v4
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/generate-publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,26 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Harden Runner
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit

- name: 'Checkout'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.

- name: 'Setup .NET SDK'
uses: actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # v4.2.0
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
with:
dotnet-version: 9.0.x

- run: dotnet tool update -g docfx
- run: docfx ./docs/docfx.json

- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
with:
# Upload entire repository
path: './docs/_site'
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/markdown-link-check.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/upload-coverage-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ jobs:
github.event.workflow_run.conclusion == 'success'
steps:
- name: Harden Runner
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit

- name: 'Download coverage results'
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: coverage-results

- name: Add Code Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
if: github.event_name == 'pull_request'
with:
recreate: true
Expand Down
Loading