{"id":18538947,"url":"https://github.com/eitrtechnologies/githook-saltapply","last_synced_at":"2025-05-15T02:13:20.847Z","repository":{"id":120633262,"uuid":"392833542","full_name":"eitrtechnologies/githook-saltapply","owner":"eitrtechnologies","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-04T22:00:02.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T08:12:56.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eitrtechnologies.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-04T21:55:58.000Z","updated_at":"2022-02-07T23:00:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"e38e4eed-069b-484b-8503-6c4af1bb81c0","html_url":"https://github.com/eitrtechnologies/githook-saltapply","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitrtechnologies%2Fgithook-saltapply","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitrtechnologies%2Fgithook-saltapply/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitrtechnologies%2Fgithook-saltapply/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitrtechnologies%2Fgithook-saltapply/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eitrtechnologies","download_url":"https://codeload.github.com/eitrtechnologies/githook-saltapply/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259443,"owners_count":22040822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T19:45:38.297Z","updated_at":"2025-05-15T02:13:20.833Z","avatar_url":"https://github.com/eitrtechnologies.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Run Salt States via Git Webhook\n\nProcess incoming git webhooks and run a specified Salt state.\n\nEnvironment variable configuration:\n* `GITHOOK_SECRET` - Secret for validation of GitHub or GitLab payloads.\n* `LOG_LEVEL`      - (optional) Log level for app messages. Defaults to INFO.\n* `SALT_STATE`     - State name to run using the Caller client (salt-call).\n\nA `git_ref` key is passed in Pillar to the state in \"refs/(heads|tags)/(name)\" format.\n\nExample State:\n```\n    {%- set ref = pillar.get(\"git_ref\", \"\").split(\"/\") | last %}\n    \n    sync_git_{{ref}}_env:\n      git.latest:\n        - name: https://github.com/eitrtechnologies/idem-azurerm.git\n        - target: /srv/salt/{{ ref }}\n        - rev: {{ ref }}\n        - branch: {{ ref }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feitrtechnologies%2Fgithook-saltapply","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feitrtechnologies%2Fgithook-saltapply","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feitrtechnologies%2Fgithook-saltapply/lists"}