ci: add Coverity Scan static analysis workflow#5
Open
agabhin wants to merge 1 commit into
Open
Conversation
Add a GitHub Actions workflow that builds libfuse with cov-build and submits results to Coverity Scan (scan.coverity.com) for inter-procedural static analysis. Coverity's analysis is particularly effective at tracking NULL dereferences, use-after-free, and resource leaks across function call boundaries — the same bug classes seen in recent CVE fixes (CVE-2026-33150, CVE-2026-33179). Requires two repository secrets: COVERITY_SCAN_TOKEN - project token from scan.coverity.com COVERITY_SCAN_EMAIL - email registered with the Coverity project Register the project at https://scan.coverity.com (free for open source). Only runs on push to master since secrets are unavailable to fork PRs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
Add a GitHub Actions workflow that builds libfuse with Coverity's
cov-buildand submits results to scan.coverity.com (free for open source projects).Why Coverity
Coverity's inter-procedural dataflow analysis tracks values across function boundaries — the key difference from cppcheck/GCC analyzer, which tend to be intra-procedural. This matches the real bug patterns in libfuse:
fuse_get_context()null checkfuse_ringfreed, pointer retained inse->uring.pool)pthread_setspecific, mountpoint, pipe leaksfuse_daemonize()Setup required
Register the project at https://scan.coverity.com (free for OSS), then add two repository secrets:
COVERITY_SCAN_TOKENCOVERITY_SCAN_EMAILWorkflow only runs on push to master — secrets are unavailable to fork PRs.