Repository navigation
ci: adopt the ci-baseline v1 checks - #210
Merged
Merged
Conversation
Add baseline-checks.yml, which calls the ci-baseline baseline workflow for gitleaks, CodeQL and NuGetAudit on pull requests and pushes to main, and history-scan.yml, a manual full-history secret scan. Both pin @v1. Run the coverage gate in the build job right after the tests, set codecov.yml to the baseline policy, attach a CycloneDX SBOM to each release in a new sbom job, and set the NuGetAudit properties in Directory.Build.props.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adopts the shared CI security and quality baseline, ci-baseline v1: secret scanning, CodeQL, NuGetAudit, a line coverage floor with a codecov drop check, and an SBOM on every release.
Type of Change
feat— New featurefix— Bug fixperf— Performance improvementrefactor— Code refactoring (no behavior change)docs— Documentation onlytest— Adding or updating testsbuild/ci— Build system or CI changeschore— MaintenanceChanges
baseline-checks.yml: callsbaseline.yml@v1as jobbaselineon pull requests and pushes to main, for gitleaks, CodeQL and NuGetAudit onZeroAlloc.StateMachine.slnx, with the SDK fromglobal.json.history-scan.yml: manual full-history gitleaks scan, with the optionalGITLEAKS_CONFIGsecret.ci.yml: the coverage gate runs in thebuildjob right after the tests, on the reports inTestResults/, before the codecov upload.codecov.yml: the baseline policy. The project status compares with the base commit and fails on a drop of more than 1 point. The informational project and patch statuses and the comment settings are gone, as the baseline requires.release-please.yml: a newsbomjob builds the release tag afterpublishand attaches a CycloneDX SBOM to the GitHub release, using release-please'stag_name.Directory.Build.props: NuGetAudit properties, so a local restore shows the same advisories as CI.Breaking Changes
None
Test Plan
dotnet test)CI on this pull request runs the new baseline jobs and the coverage gate. The
sbomjob only runs on a release.After merge, the
mainruleset can requirebaseline / gitleaks,baseline / codeql (csharp),baseline / nuget-auditandbuild.Checklist