Skip to main content

A package used to execute some autopkg functions, primarily within the context of a GitHub Actions runner.

Project description

autopkg-wrapper

autopkg_wrapper is a small package that can be used to run autopkg within CI/CD environments such as GitHub Actions.

The easiest way to run it is by installing with pip.

pip install autopkg-wrapper

Command Line Parameters

-h, --help                      Show this help message and exit
--recipe-file RECIPE_FILE       Path to a list of recipes to run (cannot be run with --recipes)
--recipes [RECIPES ...]         Recipes to run with autopkg (cannot be run with --recipe-file)
--debug                         Enable debug logging when running script
--override-trust                If set recipe override trust verification will be disabled. (Default: True)
--github-token GITHUB_TOKEN     A token used to publish a PR to your GitHub repo if overrides require their trust to be updated
--branch-name BRANCH_NAME       Branch name to be used where recipe overrides have failed their trust verification and need to be updated.
                                By default, this will be in the format of "fix/update_trust_information/YYYY-MM-DDTHH-MM-SS"
--create-pr                     If enabled, autopkg_wrapper will open a PR for updated trust information
--autopkg-prefs AW_AUTOPKG_PREFS_FILE
                                Path to the autopkg preferences you'd like to use
--autopkg-overrides-repo-path AUTOPKG_OVERRIDES_REPO_PATH
                                The path on disk to the git repository containing the autopkg overrides directory. If none is provided, we will try to determine it for you.

Example

An example folder structure and GitHub Actions Workflow is available within the actions-demo

Credits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autopkg_wrapper-2024.8.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

autopkg_wrapper-2024.8.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file autopkg_wrapper-2024.8.1.tar.gz.

File metadata

  • Download URL: autopkg_wrapper-2024.8.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for autopkg_wrapper-2024.8.1.tar.gz
Algorithm Hash digest
SHA256 e684f72125d5c7cd1640092b18eadd8033d122543285f54a782dcd86810e6927
MD5 fca9868e985ed21746280dfaf79b6ac1
BLAKE2b-256 b5660d93d9a15fbc56521494372165fdc9fc47ff1f4a43136ed5324a423e2205

See more details on using hashes here.

File details

Details for the file autopkg_wrapper-2024.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for autopkg_wrapper-2024.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cbebd6ae0d43101d656dbb3d7fb724d7c8a28ae2b977972ac8e6056973313023
MD5 4ac2e7e6e7e013bb5de68a17bd7deb40
BLAKE2b-256 75c7183da5472c1127ec3f7ab89ec39cc0d9f20c1462238a5d1fa0d06de72f6b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page