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.80

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.80
File Size Uploaded Provenance Actions
repoauditor-0.2.80.tar.gz 139.5 kB Without provenance Details for repoauditor-0.2.80.tar.gz

Built distribution (wheel)

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

Total release size: 232.9 kB

Release files / repoauditor-0.2.80.tar.gz

Download URL repoauditor-0.2.80.tar.gz
Size 139.5 kB
Tags Source
SHA-256 checksum
How to use checksums
27c037cdd0b2a60b0c693cadf5e0e33ebc36bffdc2764ad746dfb3db7fa92f4c
BLAKE2b-256 checksum
How to use checksums
1cfd298c8fc221373efc03afd5e16e7a6d9f9356426641816f73ce779272a67d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

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

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

Security for RepoAuditor 0.2.80

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.80 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