Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

oursky/devsecops-github-checker

Repository files navigation

DevSecOps-ignore

Check .ignore files from all repository within organization

masterTravisCI

Purpose

A program to scan all repository within organization, that for each repository if there is ignore files, that file should contains basic ignore entries.

Using it

Create personal access token

  1. Visit https://github.com/settings/tokens
  2. Generate new token.
  3. Tick the repo section.

Configure

Copy .env.example to .env and edit it.

Run the check

docker build -t devsecops-ignore https://github.com/oursky/devsecops-ignore.git
docker run -it --rm --env-file .env devsecops-ignore --create-issue --create-pr
Command line arguments
usage: python main.py [-h] -[v] [--create-issue] [--create-pr]
  -h              Show this help
  -v              Verbose
  --create-issue  Automatic create github issue, disable if omitted
  --create-pr     Generate autofix pull request, disable if omitted