Skip to content

[Aikido] Add 8 packages.lock.json files for dependency locking - #86

Open
aikido-autofix[bot] wants to merge 1 commit into
mainfrom
fix/aikido-security-dotnet-190122470-bhfn
Open

aikido-autofix[bot] wants to merge 1 commit into
mainfrom
fix/aikido-security-dotnet-190122470-bhfn

Conversation

@aikido-autofix

Copy link
Copy Markdown

What

packages.lock.json files added to ensure reproducible builds and secure dependency management.

Why

Locked dependency versions ensure consistent builds across environments and prevent supply chain attacks by pinning specific dependency versions.

Checklist — change

  • Commits are split by kind (fix / option / test / harness), not one per session.
  • The test for any new or changed behaviour is in the same commit as the code.
  • dotnet test passes; suites needing POSTGRES_TEST_CONNECTION either ran with it or are marked
    in the PR body as covered by CI only.
  • dotnet run --project bench/LexiSharp.ApiDocs -c Release -- check passes if a public type's
    documentation changed.
  • bench/LexiSharp.Eval --verify-reference passes if a pinned figure moved.

Checklist — changelog

  • The entry says what changed and what it does to a caller's code.
  • Defaults are stated (default: false), and migration steps are given for an API change.
  • No investigation narrative, no post-mortem, no history of an earlier entry.
  • No local machine or infrastructure detail. If verification was partial, the entry names the
    suite and the variable that enables it.
  • Any figure carries its source — the pinned.json row or the doc section — so it can be replayed.
    A number that appears only in the changelog is an assertion.
  • Uncertainty about a figure is kept ("not measured", "upper bound", "fitted in-sample",
    "best of 125"). Uncertainty about the host is dropped.
  • A withdrawn figure is named in one entry with the reason, under the release that published it.
  • One section per category per release; no category appears twice under one version.
  • Unreleased sections carry a date only when released; published ones are left as they shipped.

Checklist — honesty

  • Every performance or quality claim in the diff was measured, in this session, against a baseline
    taken in the same session.
  • No number is asserted that no code path in this repository can produce.
  • A measurement whose baseline is a past build names which build the other column is.
  • An "upper bound" is labelled as one.

.NET Lockfile Creation

This PR adds packages.lock.json files to ensure reproducible builds and secure dependency management.

Files Added:

  • bench/LexiSharp.Benchmarks/packages.lock.json
  • bench/LexiSharp.Eval/packages.lock.json
  • samples/LexiSharp.WasmDemo/packages.lock.json
  • src/LexiSharp.MessagePack/packages.lock.json
  • src/LexiSharp.Onnx/packages.lock.json
  • src/LexiSharp.Postgres/packages.lock.json
  • tests/LexiSharp.Onnx.Tests/packages.lock.json
  • tests/LexiSharp.Tests/packages.lock.json

Benefits:

  • Reproducible builds: Locked dependency versions ensure consistent builds across environments
  • Security: Prevents supply chain attacks by pinning specific dependency versions
  • Performance: Faster builds in CI/CD pipelines
  • Deterministic child dependency scanning: Scanning for child dependencies becomes deterministic, reducing false positives in dependency analysis

The lockfiles were generated using dotnet restore command.

@codecov-commenter

codecov-commenter commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.27%. Comparing base (7e0fbff) to head (8877d22).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #86   +/-   ##
=======================================
  Coverage   89.26%   89.27%           
=======================================
  Files         271      271           
  Lines       21461    21461           
  Branches     4635     4635           
=======================================
+ Hits        19158    19160    +2     
+ Misses       1373     1372    -1     
+ Partials      930      929    -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant