GithubHelp home page GithubHelp logo

brucellino / black-panther Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 59 KB

An Inspec profile for github community health

License: Apache License 2.0

Ruby 100.00%
testing community chef inspec-profile ruby github-api

black-panther's Introduction

Build Status Dependency Status Maintainability DOI

Black Panther โœŠ๐Ÿฟ Profile

An InSpec profile for testing the community health of GitHub repositories. It uses the GitHub v3 API

For more information, please see the documentation

Community Health

GitHub measures community health in terms of the indicators of community-friendly content of a repository, building on the Open Source Guide. A strong community can be enabled by clear guides and clear supporting documentation explaining how to contribute, what recognition is given for contributions and ensuring quality in the process of maintaining the repository.

This is done by consuming the repository's community object via the GitHub API, and detecting deviations from expected profiles.

Using

In order to use this profile, you need two environment variables to be set:

  • GITHUB_REPO: GitHub repository you want to test e.g. EGI-Foundation/ansible-style-guide
  • GITHUB_TOKEN: Personal API Token
  • Ruby and bundler
  • The Gems - bundle install

Once your environment is set up, you can run the profile :

inspec exec .
WARN: Unresolved specs during Gem::Specification.reset:
      net-ssh (< 5.0, >= 2.6.5, >= 2.9)
      ffi (>= 1.0.1)
      multi_json (~> 1.10)
      http-cookie (~> 1.0.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.

Profile: Profile for GitHub Community Health (Black Panther)
Version: 0.1.0
Target:  local://

  โœ”  Power to the People: Black Panther โœŠ๐Ÿฟ
     โœ”  JSON black-panther.json health_percentage should be > 75
     โœ”  JSON black-panther.json ["documentation"] should be
     โœ”  JSON black-panther.json ["files", "contributing"] should be
     โœ”  JSON black-panther.json ["files", "readme"] should be
     โœ”  JSON black-panther.json ["files", "pull_request_template"] should be
  โœ”  I fought the law, but the law won: Wynona Earp  ๐Ÿ‘ฎ โ€โ™€๏ธ
     โœ”  JSON black-panther.json ["files", "code_of_conduct"] should be
     โœ”  JSON black-panther.json ["files", "license", "key"] should match ".*pache.*"
     โœ”  JSON black-panther.json ["files", "license", "spdx_id"] should cmp == "Apache-2.0"


Profile Summary: 2 successful controls, 0 control failures, 0 controls skipped
Test Summary: 8 successful, 0 failures, 0 skipped

You can add this to your CI pipeline - see the accompanying .travis.yml

Find it in the supermarket

This is an Inspec profile registered in the Chef Supermarket.

inspec supermarket info brucellino/black-panther
name:   black-panther
owner:  brucellino
url:    https://github.com/brucellino/black-panther

description:   A GitHub community health profile compliance check

You can add it to your compliance profile by add a depends section to your inspec.yml :

depends:
- name: supermarket-profile
  supermarket: brucellino/black-panther

Citing

If you use this for any kind of academic purpose, please cite as:

Bruce Becker. (2018, April 17). brucellino/black-panther: Community Health Compliance Profile for GitHub repos (Version v1.0.1). Zenodo. http://doi.org/10.5281/zenodo.1219644

black-panther's People

Contributors

brucellino avatar dependabot[bot] avatar renovate[bot] avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

neatnerdprime

black-panther's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Detected empty commit - aborting git push

Other Branches

These updates are pending. To force PRs open, click the checkbox below.

  • chore(deps): update dependency awesome_print to v1.9.2
  • chore(deps): update dependency httparty to v0.22.0
  • chore(deps): update dependency json to v2.7.2
  • chore(deps): update dependency inspec to v6

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

bundler
Gemfile
  • httparty '~> 0.22.0'
  • awesome_print '~> 1.8'
  • json '~> 2.3', '>= 2.3.0'
  • inspec '6.6.0'
  • rubocop '~> 1.63.0'

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.