This repo contains some Python examples on using git and GitHub API.
- Sign automatic commits in GitHub Actions
- How to create a single commit with multiple files using GitHub API
- How to sign commits using the GitPython package
- How to create a subkey for signing
Build docker image:
./bin/build.shRun all examples in src/main.py:
./bin/run-main.shRun examples:
./bin/run-01.sh
./bin/run-03.sh
./bin/run-04.sh
./bin/run-main.shNOTE: running GitHub API examples with your personal token produces not signed commits. The commit is only signed if you use the GITHUB_TOKEN provided to the running workflow.