{"id":21831424,"url":"https://github.com/nodef/git-config.action","last_synced_at":"2026-05-06T15:44:23.954Z","repository":{"id":152216983,"uuid":"625425951","full_name":"nodef/git-config.action","owner":"nodef","description":"A GitHub Action for configuring git.","archived":false,"fork":false,"pushed_at":"2023-04-09T18:57:56.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-26T09:15:53.809Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/configure-git","language":"JavaScript","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/nodef.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":"2023-04-09T04:15:17.000Z","updated_at":"2023-04-09T11:02:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"08fa42ba-5cad-4e92-a2d3-f976bd7dfefb","html_url":"https://github.com/nodef/git-config.action","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fgit-config.action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fgit-config.action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fgit-config.action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fgit-config.action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodef","download_url":"https://codeload.github.com/nodef/git-config.action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244803703,"owners_count":20512976,"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-27T19:10:23.405Z","updated_at":"2026-05-06T15:44:23.950Z","avatar_url":"https://github.com/nodef.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"A GitHub Action for configuring git.\n\n```yaml\n# Configure credentials for GitHub and GitHub Gist.\n- uses: nodef/git-config.action@v1.0.0\n  with:\n    credentials: |-\n      github.com=${{secrets.GITHUB_TOKEN}}\n      gist.github.com=${{secrets.GITHUB_TOKEN}}\n\n\n# Automatically configure credentials using environment variables.\n# Needs $GH_TOKEN/$GITHUB_TOKEN to be set.\n- uses: nodef/git-config.action@v1.0.0\n\n\n# Automatically configure credentials, and set user name and email.\n- uses: nodef/git-config.action@v1.0.0\n  with:\n    credentials: auto\n    entries: |-\n      user.name  = Your Name\n      user.email = your-email@example.com\n\n\n# Automatically configure credentials, user name, and email.\n# Needs the following to be set as well:\n# - $GIT_AUTHOR_NAME  / $GIT_COMMITTER_NAME  / $NAME / $USER\n# - $GIT_AUTHOR_EMAIL / $GIT_COMMITTER_EMAIL / $EMAIL\n- uses: nodef/git-config.action@v1.0.0\n```\n\n\u003cbr\u003e\n\n\n#### Options\n\n```yaml\n- uses: nodef/git-config.action@v1.0.0\n  with:\n    path: $HOME/.gitconfig  # Path to the .gitconfig file\n    credentials-path: $HOME/.git-credentials  # Path to the .git-credentials file\n    reset: false            # Reset the .gitconfig, .git-credentials files\n    credentials: |-         # Credentials to configure\n      myhost1=authtoken1\n      mhhost2=authtoken2\n      ...\n    entries: |-             # Entries to add\n      key1=value1\n      key2=value2\n      ...\n```\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\n## References\n\n- [kota65535/github-git-config-action : Tomohiko Ozawa](https://github.com/kota65535/github-git-config-action)\n- [dawidd6/action-git-user-config : Dawid Dziurla](https://github.com/dawidd6/action-git-user-config)\n- [google-github-actions/get-secretmanager-secrets](https://github.com/google-github-actions/get-secretmanager-secrets)\n- [Creating a JavaScript Action - GitHub Docs](https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action)\n- [Metadata syntax for GitHub Actions - GitHub Docs](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions)\n- [Git Internals - Environment Variables](https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables)\n- [Git Tools - Credential Storage](https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage)\n- [git-config - Git Documentation](https://git-scm.com/docs/git-config)\n- [Storing Git Credentials with Git Credential Helper : Seralahthan](https://techexpertise.medium.com/storing-git-credentials-with-git-credential-helper-33d22a6b5ce7)\n- [How to Save Username and Password in Git : Maria Naz](https://linuxhint.com/save-username-password-in-git/)\n- [Error: Cannot find module '@actions/core'](https://github.com/Azure/docker-login/issues/3)\n- [How Do I Use GIT_CONFIG Environment Variable](https://stackoverflow.com/a/67714373/1413259)\n- [Git: Easiest way to reset git config file](https://stackoverflow.com/q/35853986/1413259)\n- [How can I save username and password in Git?](https://stackoverflow.com/a/35942890/1413259)\n- [How to use array input for a custom GitHub Actions](https://stackoverflow.com/a/75420778/1413259)\n![](https://ga-beacon.deno.dev/G-RC63DPBH3P:SH3Eq-NoQ9mwgYeHWxu7cw/github.com/nodef/git-config.action)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fgit-config.action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodef%2Fgit-config.action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fgit-config.action/lists"}