pvtr-github-repo

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

README

Privateer Plugin for GitHub Repositories

This plugin is designed to test a GitHub repository using automated assessments compatible with the Gemara Layer 4 data types.

Many of the assessments require a Security Insights file to be present at the root of the repository, or ./github/security-insights.yml.

Work in Progress

Assessment development is currently addressing the Open Source Project Security Baseline v2025.02.25.

As possible, the goal is to work on the OSPS Baseline maturity levels from the lowest to highest.

GitHub Actions Usage

We've pushed an image to docker hub for use in GitHub Actions. Many tests are currently pending implementation, and only Maturity Level 1 is currently recommended for use.

You will also need to set up a GitHub personal access token with the repository read permissions. This token should be added to your config file, or — if using the example pipeline below — as a secret in your repository.

Example GHA Setup

Local Development

While working on tests, the best way to run the plugin is via go run . debug --service=<your-service>. Ensure your local config file is set up correctly beforehand.

You may also pull the code locally and run the local Dockerfile:

  1. Pull the repo
  2. Modify example-config.yml to use your values, and rename it to config.yml
  3. Build the Docker Image: make docker-build
  4. Run the Docker Image: make docker-run
  5. Review the output in the directory you've specified in your config file

Required Token Scopes

Token Scopes

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL