repositorypackage
0.0.0-20241024131638-4349a64d31eb
Repository: https://github.com/michalswi/github-c2.git
Documentation: pkg.go.dev
# README
github c2 - pull
Use GitHub as a way to store configuration information.
Code is pulling file(s) from a GitHub repository to the local file system.
Instead of Classic Tokens you can use Fine-grained personal access tokens. Create a repo (public/private) and generate token (PAT) only for this repo. Set GITHUB_PAT
env variable.
export GITHUB_PAT=github_pat_(...)
Script is downloading all the files to your local catalog (default /tmp
). If you re-run it will compare SHA1 before downloading. If checksum the same, file won't be downloaded.
Set repository details and local path using env variables:
export REPO_OWNER=<>
export REPO_NAME=<>
export BASE_PATH=<>
Example:
export REPO_OWNER="michalswi"
export REPO_NAME="github-c2"
export BASE_PATH="/tmp"