Metadata-Version: 2.4
Name: hegemony-steps-git
Version: 0.59.1
Summary: Git step handlers (commit evidence to a repository) for Hegemony
License-Expression: AGPL-3.0-or-later
License-File: LICENSE-AGPL-3.0-or-later.txt
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: System :: Systems Administration
Requires-Dist: hegemony-step-sdk>=1.1,<2
Requires-Dist: hegemony-steps-container==0.59.1
Requires-Python: >=3.11
Project-URL: Homepage, https://hegemony.sh
Project-URL: Documentation, https://hegemony.sh
Project-URL: Source, https://github.com/hegemony-sh/hegemony-step-plugins
Project-URL: Issues, https://github.com/hegemony-sh/hegemony-step-plugins/issues
Project-URL: Changelog, https://github.com/hegemony-sh/hegemony-step-plugins/blob/main/CHANGELOG.md
Description-Content-Type: text/markdown

<!--
SPDX-FileCopyrightText: 2026 Rexonix s.r.o.
SPDX-FileContributor: Jakub Trávník <jakub.travnik@gmail.com>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

# hegemony-steps-git

Git for Hegemony flows — the `git.` namespace.

Handlers:

- `git.commit` — commit the text evidence an earlier step recorded (such as
  the running configurations a `netcli.collect_evidence` step read) to a
  branch of a Git repository over HTTPS, one file per device and command,
  and push only when a file changed. The repository's history is then the
  history of what the step read: a configuration backup in Git with no
  playbook to write.

The login (a user name and a password or token) is given as secret
references, resolved by the platform, handed to git through `GIT_ASKPASS`
from files, and redacted from output; it never appears in the URL, an
argument or an environment variable.

The step runs on the platform's Docker-in-Docker sandbox through
`container.run`'s runner (this wheel depends on `hegemony-steps-container`),
under the flow's egress policy. Its default image is
`ghcr.io/hegemony-sh/git-runner:0.59`, built and published from
`images/git-runner/` in this repository.

Namespace prefix (= entry-point name): `git.` — see the repo-level
`CONVENTIONS.md` for the naming rules. The handler's page is under
`src/hegemony_steps_git/docs/`.
