Skip to content

A framework for defining ratings for open source projects. In particular, the framework offers a security rating for open source projects that may be used to assess the security risk that comes with open source components.

License

Notifications You must be signed in to change notification settings

phil9909/fosstars-rating-core

 
 

Repository files navigation

Java CI Language grade: Java REUSE status Fosstars security rating Fosstars RoP status

Ratings for open source projects

This is a framework for defining and calculating ratings for open source projects. See docs for more details.

Security rating for open source projects

open source software helps a lot, but it also may bring new security issues and therefore increase security risks. Is it safe to use a particular open source component? Sometimes answering this question is not easy. The security rating for open source projects helps to answer this question. First, it gathers various data about an open source project. Then, it calculates a security rating for it. The rating helps to assess the security risk that comes with this open source project.

More details about the security rating can be found in the docs.

Requirements

  • Java 8+
  • Maven 3.6.0+
  • Python 3.6.8+
  • Jupyter Notebook 4.4.0+

Download and installation

The jars are available on the Maven Central repository:

<dependency>
    <groupId>com.sap.oss.phosphor</groupId>
    <artifactId>fosstars-rating-core</artifactId>
    <version>1.3.0</version>
</dependency>

Or, the project can be built and installed with the following command:

mvn clean install

Fosstars GitHub action

For projects on GitHub, there is a GitHub action that calculates a security rating and generates a badge.

Command-line tool for calculating security ratings

There is a command-line tool that takes a URL to a project on GitHub, gathers data about it, and calculates a security rating.

The tool can be run with commands like the following:

git clone https://github.com/SAP/fosstars-rating-core.git
cd fosstars-rating-core
mvn package -DskipTests
TOKEN=xyz # use your personal token, see below
java -jar target/fosstars-github-rating-calc.jar --url https://github.com/curl/curl --verbose --token ${TOKEN}

The TOKEN variable contains a token for accessing the GitHub API. You can create a personal token in the settings/tokens tab in your profile on GitHub.

In the verbose mode, the tool is going to print out the following:

  • Data that was used for calculating a security rating
  • Sub-scores that describes particular security aspects
  • Overall score and label
  • Advice on how the rating may be improved.

Here is what the output looks like:

Command-line tool demo

Here you can find full output.

If --interactive option is specified, the tool becomes a bit interactive, and may ask the user a couple of questions. You can also find more details in the docs.

Known issues

Please see GitHub issues.

Support

Please create a new GitHub issue if you found a bug, or you'd like to propose an enhancement. If you think you found a security issue, please follow this guideline.

If you have a question, please open a discussion.

Contributing

We appreciate feedback, ideas for improvements and, of course, pull requests.

Please follow this guideline if you'd like to contribute to the project.

About

A framework for defining ratings for open source projects. In particular, the framework offers a security rating for open source projects that may be used to assess the security risk that comes with open source components.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 81.4%
  • Jupyter Notebook 17.4%
  • Shell 1.1%
  • Other 0.1%