Skip to main content

RepoAuditor - README

Project: License

Package: PyPI - Python Version PyPI - Version PyPI - Downloads

Development: uv CI Code Coverage GitHub commit activity

Contents

Installation

We recommend using uv since it can install RepoAuditor as a tool via uvx into a sandbox environment for quick use. This lets you directly run RepoAuditor.

uvx RepoAuditor

Alternatively, yuou can install RepoAuditor via uv or pip. uv is preferred to pip since it creates and manages a virtual environment.

Installation Method Command
Via uv uv add repoauditor
Via pip pip install repoauditor

Overview

How to use RepoAuditor

Once installed, you can invoke the following to verify if RepoAuditor is installed correctly:

uvx RepoAuditor --version

and you should see something like

RepoAuditor vX.X.X

To get a list of command line options, you can run

uvx RepoAuditor --help

Personal Access Token (PAT)

The most common use case for RepoAuditor would be to audit a GitHub repository. In order to allow RepoAuditor to read the repository, you first need to generate a Personal Access Token or PAT.

Please refer to the GitHub documentation on Personal Access Tokens for details about a Fine-grained PAT which we will be using.

To generate the Fine-grained PAT, we perform the following steps:

  1. Go to Settings -> Developer settings -> Personal Access Token -> Fine-grained tokens.
  2. Click on Generate new token.
  3. Give the token a name and a description.
  4. Set an appropriate expiration date.
  5. Under Repository Access, select All repositories.
  6. For permissions, we need to go to Repository permissions.
  7. Enable the following permissions:
    • Read-Write access to Contents.
    • Read access to Administration and Secret scanning alerts.
  8. Click on Generate token.
  9. Copy the generated string. This is your PAT.
  10. Save the PAT to a convenient location on your machine (such as your hime directory ~/) in the file PAT.txt.

The path to the PAT.txt will be passed into RepoAuditor. E.g.

uvx RepoAuditor --GitHub-pat ~/PAT.txt

Example Usage

With the above generated PAT file, you can now run RepoAuditor on your GitHub repository.

As a general example, we will use the python-helloworld repository.

NOTE You need to fork the repository since your default PAT only has access to repos under your account.

To run RepoAuditor, we can enter the following in the command-line:

uvx RepoAuditor --include GitHub \
  --GitHub-url https://github.com/<username>/python-helloworld \
  --GitHub-pat ~/PAT.txt

RepoAuditor will generate a series of messages describing all the issues in the repository, along with the rationale behind them and the steps for resolution.

Config File

RepoAuditor accepts both a set of flags as well as a configuratin YAML file.

The configuration (or config) file can make usage easier by recording preferences as well as facilitating sharing of enforced requirements within an organization. We have provided a sample configuration file called default_config.yaml, which can be used as:

uvx run RepoAuditor --config default_config.yaml

Development

Please visit Contributing and Development for information on contributing to this project.

Additional Information

Additional information can be found at these locations.

Title Document Description
Code of Conduct CODE_OF_CONDUCT.md Information about the norms, rules, and responsibilities we adhere to when participating in this open source community.
Contributing CONTRIBUTING.md Information about contributing to this project.
Development DEVELOPMENT.md Information about development activities involved in making changes to this project.
Governance GOVERNANCE.md Information about how this project is governed.
Maintainers MAINTAINERS.md Information about individuals who maintain this project.
Security SECURITY.md Information about how to privately report security issues associated with this project.

License

RepoAuditor is licensed under the MIT license.

Metadata

Release files for RepoAuditor 0.2.79

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for RepoAuditor 0.2.79
File Size Uploaded Provenance Actions
repoauditor-0.2.79.tar.gz 139.4 kB Without provenance Details for repoauditor-0.2.79.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for RepoAuditor 0.2.79
File Interpreter ABI Platform Actions
repoauditor-0.2.79-py3-none-any.whl Python 3 none any Details for repoauditor-0.2.79-py3-none-any.whl

Total release size: 232.8 kB

Release files / repoauditor-0.2.79.tar.gz

Download URL repoauditor-0.2.79.tar.gz
Size 139.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4c0fa548d1e3365a2f0156faed9dd497d85abbc65b27cd57e90bd5745a278d42
BLAKE2b-256 checksum
How to use checksums
4067fbb10b7e14e63dc05fd6cd51693765496002af1bebc9fe478090045fc75c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Release files / repoauditor-0.2.79-py3-none-any.whl

Download URL repoauditor-0.2.79-py3-none-any.whl
Size 93.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5077063c0036dd6734f007913e0cdc2e742bca7c8c5c569738289d5941acf9fb
BLAKE2b-256 checksum
How to use checksums
95eb3e9be9b505c67e4dd46eb92c219ec1d6556b1a7fa55eb3f5759987e366a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Security for RepoAuditor 0.2.79

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.79 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page