Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: "8.0.x"
dotnet-version: "10.0.x"
- name: download and verify the official KeePass source release
shell: pwsh
# SourceForge is the only official distributor and it rejects
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: "8.0.x"
dotnet-version: "10.0.x"
- name: Linux build deps (hidapi/udev)
run: sudo apt-get update && sudo apt-get install -y libudev-dev pkg-config
- name: build FFI library
Expand Down Expand Up @@ -243,7 +243,7 @@ jobs:
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: "8.0.x"
dotnet-version: "10.0.x"
- name: build FFI library
run: cargo build -p keepassity-ffi --release
- name: restore and build the app
Expand All @@ -252,14 +252,16 @@ jobs:
/p:KeepassityFfiDir=${{ github.workspace }}\target\release\
- name: core service tests
run: dotnet run --project tests/app-core/Keepassity.Core.Tests -c Release
- name: structure budget (ADR-0035)
run: powershell -NoProfile -ExecutionPolicy Bypass -File scripts/check-structure.ps1
- name: application self-test
shell: pwsh
run: |
$cases = @(
@{ fixture = 'tests/fixtures/keepass-rs/test_db_kdbx4_with_password_aes.kdbx'; password = 'demopass' },
@{ fixture = 'tests/fixtures/keepass-rs/test_db_kdbx4_with_totp_entry.kdbx'; password = 'test' }
)
$exe = (Get-ChildItem 'apps/windows/Keepassity.Mock/bin' -Recurse -Filter 'Keepassity.exe' |
$exe = (Get-ChildItem 'apps/windows/Keepassity.App/bin' -Recurse -Filter 'Keepassity.exe' |
Where-Object { $_.FullName -match '\\Release\\' } | Select-Object -First 1).FullName
foreach ($case in $cases) {
$report = Join-Path $env:RUNNER_TEMP ('selftest-' + [guid]::NewGuid().ToString('N') + '.log')
Expand All @@ -279,16 +281,19 @@ jobs:
- name: dependency audit (informational)
shell: pwsh
continue-on-error: true
run: dotnet list apps/windows/Keepassity.Mock/Keepassity.Mock.csproj package --vulnerable --include-transitive
run: dotnet list apps/windows/Keepassity.App/Keepassity.App.csproj package --vulnerable --include-transitive

ui-strings:
name: ui-strings / ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: reject hard-coded CJK text in the English UI
- name: reject hard-coded CJK text in the shell sources
shell: pwsh
run: ./tools/check-ui-strings.ps1
- name: check UI language catalogs and key usage
shell: pwsh
run: ./tools/check-localization.ps1 -Strict

secret-scan:
name: secret-scan
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: "8.0.x"
dotnet-version: "10.0.x"
- name: initialize CodeQL
uses: github/codeql-action/init@9418214df1f2c4b8128c770156c409013b07d6b9 # v3.39.3
with:
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: "8.0.x"
dotnet-version: "10.0.x"

- name: determine version
shell: pwsh
Expand All @@ -40,10 +40,16 @@ jobs:
- name: verify the source
shell: pwsh
run: |
cargo fmt --all -- --check
if ($LASTEXITCODE -ne 0) { exit 1 }
cargo clippy --workspace --all-targets -- -D warnings
if ($LASTEXITCODE -ne 0) { exit 1 }
cargo test --workspace
if ($LASTEXITCODE -ne 0) { exit 1 }
dotnet run --project tests/app-core/Keepassity.Core.Tests -c Release
if ($LASTEXITCODE -ne 0) { exit 1 }
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/check-public.ps1
if ($LASTEXITCODE -ne 0) { exit 1 }
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/verify-fixtures.ps1
if ($LASTEXITCODE -ne 0) { exit 1 }

Expand Down Expand Up @@ -90,10 +96,6 @@ jobs:
-SourceDir "out/dist/keepassity-$env:KEEPASSITY_VERSION-win-x64" `
-OutputDir "out/dist"

- name: write checksums
shell: pwsh
run: powershell -NoProfile -ExecutionPolicy Bypass -File scripts/make-checksums.ps1 -Directory out/dist

- name: generate SBOM
uses: anchore/sbom-action@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0
with:
Expand All @@ -102,6 +104,14 @@ jobs:
output-file: out/dist/sbom.spdx.json
artifact-name: keepassity-sbom

- name: write checksums
shell: pwsh
run: powershell -NoProfile -ExecutionPolicy Bypass -File scripts/make-checksums.ps1 -Directory out/dist

- name: verify checksums
shell: pwsh
run: powershell -NoProfile -ExecutionPolicy Bypass -File scripts/verify-checksums.ps1 -Directory out/dist

- name: attest build provenance
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/target/
**/bin/
**/obj/
/out/
.vs/
*.user
*.suo
Expand Down
Loading
Loading