{"id":21974273,"url":"https://github.com/frequenz-floss/gh-action-setup-git","last_synced_at":"2025-03-22T23:25:56.957Z","repository":{"id":223672859,"uuid":"761175509","full_name":"frequenz-floss/gh-action-setup-git","owner":"frequenz-floss","description":"Configures the Git user, e-mail and crendentials","archived":false,"fork":false,"pushed_at":"2024-07-12T10:57:35.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"v1.x.x","last_synced_at":"2025-01-28T03:17:19.581Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frequenz-floss.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-21T11:37:19.000Z","updated_at":"2024-07-12T10:57:39.000Z","dependencies_parsed_at":"2024-02-21T13:45:18.138Z","dependency_job_id":"fb8d5f05-483b-4174-8cd0-5394f810585d","html_url":"https://github.com/frequenz-floss/gh-action-setup-git","commit_stats":null,"previous_names":["frequenz-floss/gh-action-setup-git"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frequenz-floss%2Fgh-action-setup-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frequenz-floss%2Fgh-action-setup-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frequenz-floss%2Fgh-action-setup-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frequenz-floss%2Fgh-action-setup-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frequenz-floss","download_url":"https://codeload.github.com/frequenz-floss/gh-action-setup-git/tar.gz/refs/heads/v1.x.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245033992,"owners_count":20550372,"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-29T15:40:33.150Z","updated_at":"2025-03-22T23:25:56.921Z","avatar_url":"https://github.com/frequenz-floss.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Setup Action\n\nThis action sets up Git for use in actions by configuring the user name and\nemail, and credentials.\n\nHere is an example demonstrating how to use it in a workflow:\n\n```yaml\njobs:\n  upload:\n    runs-on: ubuntu-20.04\n\n    steps:\n      - name: Fetch sources\n        uses: actions/checkout@v4\n\n      - name: Setup Git\n        # Replace the version with the latest version\n        uses: frequenz-floss/gh-action-setup-git@v1.0.0\n```\n\nThis will configure the user name and email to impersonate the GitHub Actions\nbot when new commits are created. No credentials are configured by default.\n\n## Inputs\n\n* `username`: The username to use for authentication.\n* `password`: The password to use for authentication.\n* `name`: The name to use for the Git user. Defaults to \"GitHub Actions\".\n* `email`: The email to use for the Git user. Defaults to the GitHub Actions\n  bot email.\n\nIf any of `username` and `password` are provided, then Git will be configured\nto use them for authentication. Otherwise, no credentials will be configured.\n\n## Full example\n\n```yaml\njobs:\n  upload:\n    runs-on: ubuntu-20.04\n\n    steps:\n      - name: Fetch sources\n        uses: actions/checkout@v4\n\n      - name: Setup Git\n        # Replace the version with the latest version\n        uses: frequenz-floss/gh-action-setup-git@v1.0.0\n        with:\n          username: ${{ secrets.GIT_USER }}\n          password: ${{ secrets.GIT_PASS }}\n          name: \"John Doe\"\n          email: \"john.doe@example.com\"\n```\n\n## Changelog\n\nPlease see the\n[releases](https://github.com/frequenz-floss/gh-action-setup-git/releases/)\npage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrequenz-floss%2Fgh-action-setup-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrequenz-floss%2Fgh-action-setup-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrequenz-floss%2Fgh-action-setup-git/lists"}