All Projects β†’ github β†’ Licensed

github / Licensed

Licence: mit
A Ruby gem to cache and verify the licenses of dependencies

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Licensed

Scancode Toolkit
πŸ”Ž ScanCode detects licenses, copyrights, package manifests & dependencies and more by scanning code ... to discover and inventory open source and third-party packages used in your code.
Stars: ✭ 1,134 (+64.35%)
Mutual labels:  dependencies, license-management, licensing
Npm License Crawler
Analyzes license information for multiple node.js modules (package.json files) as part of your software project.
Stars: ✭ 168 (-75.65%)
Mutual labels:  license-management, licensing
Licensecc
Software licensing, copy protection in C++. It has few dependencies and it's cross-platform.
Stars: ✭ 363 (-47.39%)
Mutual labels:  license-management, licensing
Ort
A suite of tools to assist with reviewing Open Source Software dependencies.
Stars: ✭ 446 (-35.36%)
Mutual labels:  dependencies, license-management
Dephell
πŸ“¦ πŸ”₯ Python project management. Manage packages: convert between formats, lock, install, resolve, isolate, test, build graph, show outdated, audit. Manage venvs, build package, bump version.
Stars: ✭ 1,730 (+150.72%)
Mutual labels:  dependencies, license-management
TrialMaker.Demo
A powerful yet straight-forward library suite that provides secure trial license generation and copy-protection features for .NET applications. It also supports premium license generation for expired free-trials.
Stars: ✭ 21 (-96.96%)
Mutual labels:  licensing, license-management
awesome-open-source-licensing
Cool links, tools & papers related to Open Source Licensing
Stars: ✭ 17 (-97.54%)
Mutual labels:  licensing, license-management
Detective
Find all calls to require() no matter how deeply nested using a proper walk of the AST
Stars: ✭ 387 (-43.91%)
Mutual labels:  dependencies
Legit
Add licenses to projects at the command line
Stars: ✭ 515 (-25.36%)
Mutual labels:  license-management
Npm Consider
Check package dependencies before installing it
Stars: ✭ 386 (-44.06%)
Mutual labels:  dependencies
Syncpack
Manage multiple package.json files, such as in Lerna Monorepos and Yarn/Pnpm Workspaces
Stars: ✭ 356 (-48.41%)
Mutual labels:  dependencies
Dependency Check
checks which modules you have used in your code and then makes sure they are listed as dependencies in your package.json
Stars: ✭ 435 (-36.96%)
Mutual labels:  dependencies
Madge
Create graphs from your CommonJS, AMD or ES6 module dependencies
Stars: ✭ 5,635 (+716.67%)
Mutual labels:  dependencies
Snipe It
A free open source IT asset/license management system
Stars: ✭ 5,606 (+712.46%)
Mutual labels:  license-management
Ngd
View the dependencies tree of you Angular application
Stars: ✭ 570 (-17.39%)
Mutual labels:  dependencies
F License
Open Source License Key Generation and Verification Tool written in Go
Stars: ✭ 535 (-22.46%)
Mutual labels:  license-management
Tern
Tern is a software composition analysis tool and Python library that generates a Software Bill of Materials for container images and Dockerfiles. The SBoM that Tern generates will give you a layer-by-layer view of what's inside your container in a variety of formats including human-readable, JSON, HTML, SPDX and more.
Stars: ✭ 505 (-26.81%)
Mutual labels:  dependencies
Modgv
Converts 'go mod graph' output into Graphviz's DOT language
Stars: ✭ 358 (-48.12%)
Mutual labels:  dependencies
Licensee
A Ruby Gem to detect under what license a project is distributed.
Stars: ✭ 476 (-31.01%)
Mutual labels:  licensing
Renovate
Universal dependency update tool that fits into your workflows.
Stars: ✭ 6,700 (+871.01%)
Mutual labels:  dependencies

Licensed

Licensed caches the licenses of dependencies and checks their status.

Licensed is available as a Ruby gem for Ruby environments, and as a self-contained executable for non-Ruby environments.

Licensed is not a complete open source license compliance solution. Please understand the important disclaimer below to make appropriate use of Licensed.

Current Status

Build status

Licensed is in active development and currently used at GitHub. See the open issues for a list of potential work.

Licensed v2

Licensed v2 includes many internal changes intended to make licensed more extensible and easier to update in the future. While not too much has changed externally, v2 is incompatible with configuration files and cached records from previous versions. Fortunately, migrating is easy using the licensed migrate command.

See CHANGELOG.md for more details on what's changed. See the migration documentation for more info on migrating to v2, or run licensed help migrate.

Installation

Dependencies

Licensed uses the libgit2 bindings for Ruby provided by rugged. rugged requires cmake and pkg-config which you may need to install before you can install Licensed.

Ubuntu

sudo apt-get install cmake pkg-config

OS X

brew install cmake pkg-config

With a Gemfile

Add this line to your application's Gemfile:

gem 'licensed', :group => 'development'

And then execute:

$ bundle

As an executable

Download a package from GitHub and extract the executable. Executable packages are available for each release starting with version 1.2.0.

$ curl -sSL https://github.com/github/licensed/releases/download/<version>/licensed-<version>-<os>-x64.tar.gz > licensed.tar.gz
$ tar -xzf licensed.tar.gz
$ rm -f licensed.tar.gz
$ ./licensed list

For system wide usage, install licensed to a location on $PATH, e.g. /usr/local/bin.

Usage

  • licensed list: Output enumerated dependencies only.
  • licensed cache: Cache licenses and metadata.
  • licensed status: Check status of dependencies' cached licenses.
  • licensed notices: Write a NOTICE file for each application configuration.
  • licensed version: Show current installed version of Licensed. Aliases: -v|--version
  • licensed env: Output environment information from the licensed configuration.

See the commands documentation for additional documentation, or run licensed -h to see all of the current available commands.

Automation

Bundler

The bundler-licensed plugin runs licensed cache automatically when using bundler. See the linked repo for usage and details.

GitHub Actions

The licensed-ci GitHub Action runs licensed as part of an opinionated CI workflow and can be configured to run on any GitHub Action event. See the linked actions for usage and details.

The setup-licensed GitHub Action installs licensed to the workflow environment. See the linked actions for usage and details.

  • This action is intended for projects that don't have a ruby installation setup. If your workflow has ruby setup please install licensed via Gemfile + bundle install or with gem install.

Configuration

All commands, except version, accept a -c|--config option to specify a path to a configuration file or directory.

If a directory is specified, licensed will look in that directory for a file named (in order of preference):

  1. .licensed.yml
  2. .licensed.yaml
  3. .licensed.json

If the option is not specified, the value will be set to the current directory.

See the configuration file documentation for more details on the configuration format.

Sources

Dependencies will be automatically detected for all of the following sources by default.

  1. Bower
  2. Bundler
  3. Cabal
  4. Composer
  5. Git Submodules (git_submodule)
  6. Go
  7. Go Dep (dep)
  8. Gradle
  9. Manifest lists (manifests)
  10. Mix
  11. npm
  12. NuGet
  13. Pip
  14. Pipenv
  15. Yarn

You can disable any of them in the configuration file:

sources:
  bundler: false
  npm: false
  bower: false
  cabal: false

Development

To get started after checking out the repo, run

  1. script/bootstrap to install dependencies
  2. script/setup to setup test fixtures.
  • script/setup -f will force a clean test fixture environment
  1. script/cibuild to run the tests.

You can also run script/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Adding sources

When adding new dependency sources, ensure that script/bootstrap scripting and tests are only run if the required tooling is available on the development machine.

  • See script/bootstrap for examples of gating scripting based on whether tooling executables are found.
  • Use Licensed::Shell.tool_available? when writing test files to gate running a test suite when tooling executables aren't available.
if Licensed::Shell.tool_available?('bundle')
  describe Licensed::Source::Bundler do
    ...
  end
end

See the documentation on adding new sources for more information.

Adding Commands

See the documentation on commands for information about adding a new CLI command.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/github/licensed. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct. See CONTRIBUTING for more details.

Disclaimer

Licensed is not a complete open source license compliance solution. Like any bug, licensing issues are far cheaper to fix if found early. Licensed is intended to provide automation around documenting the licenses of dependencies and whether they are configured to be allowed by a user of licensed, in other words, to surface the most obvious licensing issues early.

Licensed is not a substitute for human review of each dependency for licensing or any other issues. It is not the goal of Licensed or GitHub, Inc. to provide legal advice about licensing or any other issues. If you have any questions regarding licensing compliance for your code or any other legal issues relating to it, it’s up to you to do further research or consult with a professional.

License

The gem is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].