Giter Site home page Giter Site logo

sicaine / catx-gh-org-checks Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 340 KB

GitHub workflow to compile and overview of repository defaults compliance throughout the GitHub org

License: Apache License 2.0

Go 66.23% CSS 19.80% HTML 7.90% Smarty 4.73% Dockerfile 1.34%

catx-gh-org-checks's Introduction

gh-org-checks

What is the service

The service will check on each and every repository daily (see ticket), the available checks are:

  • releaseCheck: check if either of two condition are met

    • if a changelog.md file exist
    • if a GitHub release exist and if so, weather it use semantic versioning
  • OSSCheck: Check if all necessary files are present for repository to be open source ready. Currently, this is applicable to repositories under organization "Catena-X", see documentation here.

  • SecurityActionCheck: Check if list of GitHub action suggested by security team are present

  • TRG 1 Check: Check of the repository is compliance with eclipse release guideline (o.e. TRG) One

  • TRG 2 Check: Check of the repository is compliance with TRG Two

How to run the service

The service will run checks across GitHub repositories from a given GitHub organization

set the following environment variables:

  • GITHUB_ACCESS_TOKEN

Contain the github access token, which has admin permission to the targeted GitHub organization

  • GITHUB_ORG_NAME

Contain the name of github org, if unset, default to "catenax-ng"

How to provide more checks

You can always extend and add new tests, please be aware that you should

  • Implement interface GithubTester and testProperty, implement the function PerformTest and GetTestName, the functions will be called from testrunner
  • If you want to check a file/folder exist in the repository, you can reuse contentTester as the base struct, use property contents to indicate the file/folder you want to check
  • Add your test to testsuite (i.e. to be run) at main on function initTestSuiteAndSchedule

catx-gh-org-checks's People

Contributors

ricogu avatar dependabot[bot] avatar almadigabor avatar carslen avatar sebastianbezold avatar fagru3n avatar devsecops-catenax avatar

Forkers

catenax-ng

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.