Skip to main content

repoaudit

A tool for validating apt and yum repositories.

Installation and Usage

To install repoaudit from PyPI:

pip install repoaudit

Then run:

repoaudit --help

Examples

# validate all distros of azure-cli apt repo
repoaudit apt https://packages.microsoft.com/repos/azure-cli/

# validate only focal and bionic distros of azure-cli apt repo
repoaudit apt --dists focal,bionic https://packages.microsoft.com/repos/azure-cli/

# validate azurecore repo
repoaudit yum https://packages.microsoft.com/yumrepos/azurecore/

# validate all nested yumrepos
repoaudit yum -r https://packages.microsoft.com/yumrepos/

# validate all nested aptrepos
repoaudit yum -r https://packages.microsoft.com/repos/

# output json results to a file
repoaudit yum -r https://packages.microsoft.com/yumrepos/ -o example_file.json

# check metadata signatures by providing public keys
repoaudit apt https://packages.microsoft.com/repos/cbl-d -p https://packages.microsoft.com/keys/microsoft.asc,https://packages.microsoft.com/keys/msopentech.asc

Development

Setup

First install poetry per the installation docs.

Then clone the repo, cd into the repoaudit directory, and run poetry install.

Usage

To load the poetry shell and run repoaudit:

poetry shell
repoaudit

Alternatively you can run:

poetry run repoaudit

Releasing

First bump the version in pyproject.toml. Then commit it:

git commit -am "0.2.0 Release"

Open a PR and get it merged. Then go to the Github new release page and create a new release

Once that's done, pull the tag and use poetry to build it:

git pull --tags
git checkout 0.2.0
poetry publish --build

Metadata

Release files for repoaudit 0.2.1

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

Source distribution (sdist)

Source distribution for repoaudit 0.2.1
File Size Uploaded Provenance Actions
repoaudit-0.2.1.tar.gz 9.8 kB Without provenance Details for repoaudit-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 20.6 kB

Release files / repoaudit-0.2.1.tar.gz

Download URL repoaudit-0.2.1.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6860215210e9fffacf9fd1e354de2a45ab3643f7f7de5b4252299cdcb9303efb
BLAKE2b-256 checksum
How to use checksums
4eb40170a4fe73d6509c9d465ca79a4b11896cc6a3fa35801f0b5bfac1989641
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Darwin/21.6.0

Release files / repoaudit-0.2.1-py3-none-any.whl

Download URL repoaudit-0.2.1-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b3fca8e9ab89c488607ad388480a3b13c17878cbe10cd6b1844ebaf9aeca677
BLAKE2b-256 checksum
How to use checksums
37b40bdd8caab810f49a2caaf82f014d2fbbe15ca3c1b6612b7728c433c95398
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Darwin/21.6.0

Security for repoaudit 0.2.1

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.

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