ci: add CodeQL (push/weekly) + FOSSA (push + release gate)#24
Merged
Conversation
- codeql.yml: CodeQL C# analysis on push to main + weekly cron (manual build). - ci.yml: FOSSA analyze+test on push to main only, gating on license/CVE policy violations (run-tests: true → red build is the trigger). Gated on FOSSA_API_KEY so PRs and unconfigured repos stay green. - release.yml: FOSSA analyze+test as a release gate (before Create Release), so a release can't publish with an open license/CVE issue.
cosmin-staicu
requested review from
alinahornet,
cosminvlad,
litheon,
lucianaparaschivei and
razvalex
as code owners
June 23, 2026 12:02
…-activate when public)
Per the company FOSSA-in-CI guidance, run the scan as its own parallel job (push to main only) so it doesn't delay the build, instead of inside build-linux. Add .fossa.yml to scope the scan to shipped code — exclude tests/samples/benchmarks (dev-only deps are never redistributed). The release-gate FOSSA step (release.yml) is unchanged.
|
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.



Adds the two scans, with FOSSA configured to fail the build on CVE/license policy violations (per the requirement — a red check is the trigger, no need to watch the dashboard).
CodeQL —
codeql.ymlmain+ weekly cron (Mon 04:23 UTC).dotnet buildthe slnx between init/analyze) for reliable multi-target + central-package-management.FOSSA
ci.yml—fossa analyze+fossa teston push tomainonly (not PRs).run-tests: true→ the job fails on any license or CVE policy violation.release.yml— same FOSSA gate in thereleasejob (before Create Release), so a release can't publish with an open license/CVE issue; publish jobsneedrelease.FOSSA_API_KEYsecret, so they skip (green) until it's set.Requirement note
For
fossa testto flag CVEs and license issues, the FOSSA project's policy must enable vulnerability scanning + license rules. The gate enforces whatever that policy flags.To activate
Add secret
FOSSA_API_KEY(from app.fossa.com). CodeQL needs public/GHAS.