Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 1.26 KB

README.md

File metadata and controls

23 lines (12 loc) · 1.26 KB

Govern GitHub

Legitify Policy Scan

Repository to demonstrate use of Legit-Labs Legitify for repository governance.

Workflows

Legitify provides a GitHub action that can be used. The action needs authentication through a personal access token. As this is not neccessarily best practice, an approach using a GitHub App is investigated as well. Read the next section to get further details about the two methods.

Policies

Legitify check for a number policies that are documented in Legitify's docs.

GitHub App

The target perform the scan through a GitHub app to avoid using a PAT. This does not work yet and needs to be further investigated.

Personal Access Token (PAT)

This is the main workflow to scan this repository manually according to Legitify's default policies. In a productive setting this scan should be scheduled on a daily or weekly basis.

The workflow creates an issue on success or failure to notify about the results. The issues are created from templates located at .github/templates. The templates contain placeholder that are replaced in the workflow run using jinja2.