Paul Krill
Editor at Large

GitHub adds supply chain security tools for Rust language

news
Jun 7, 20222 mins

GitHub’s supply chain security features including the advisory database, Dependabot alerts, and dependency graph are now available for Rust Cargo files.

chain rust link heavy iron metal
Credit: cortixxx

Aiming to help Rust developers discover and prevent security vulnerabilities, GitHub has made its suite of supply chain security features available for the fast-growing Rust language.

These features include the GitHub Advisory Database, which already has more than 400 Rust security advisories, as well Dependabot alerts and updates, and dependency graph support, providing alerts on vulnerable dependencies in Rust’s Cargo package files. Rust users can report and ultimately prevent security vulnerabilities when using GitHub.

The GitHub Advisory Database is a database of security advisories focused on actionable vulnerability information for developers. The majority of vulnerabilities cited in the database come from RustSec, an organization that publishes security advisories related to Rust libraries. Rust package maintainers can use the security advisories to collaborate with vulnerability reporters to privately discuss and fix vulnerabilities prior to announcing them publicly. Developers can report Rust vulnerabilities with a CVE through a community contribution.

GitHub’s dependency graph analyzes a repository’s Cargo.toml and Cargo.lock files to determine dependencies in a project. The dependency graph backs Dependabot, which alerts developers of a known vulnerability and creates pull requests to update the affected dependency. While the dependency graph is enabled by default in public repositories, developers must enable it for private repositories.

If a dependency graph for a public repository has not already been populated, it will be soon, GitHub said. Dependency graph support for Rust is being rolled out in two phases. Full package metadata for Rust dependencies, including mapping packages to GitHub repositories, is due in a future release.

Developers can prevent Rust vulnerabilities from being introduced at all with the dependency review GitHub Action, which scans pull requests for changes in Rust dependencies and identifies if any new ones have known vulnerabilities. Developers then can block them from being merged into code. GitHub offers guidance for securing Rust repositories in GitHub Docs.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author