{"id":20490154,"url":"https://github.com/open-turo/action-git-auth","last_synced_at":"2025-04-13T16:33:19.461Z","repository":{"id":36985134,"uuid":"444994853","full_name":"open-turo/action-git-auth","owner":"open-turo","description":"GitHub Action for using git config insteadOf rule to authenticate","archived":false,"fork":false,"pushed_at":"2025-04-11T00:11:49.000Z","size":2393,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-11T01:21:31.812Z","etag":null,"topics":["action","actions","auth","authentication","gha","git","github","javascript"],"latest_commit_sha":null,"homepage":"","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/open-turo.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-01-06T00:50:08.000Z","updated_at":"2025-04-01T01:50:05.000Z","dependencies_parsed_at":"2023-09-26T19:07:20.123Z","dependency_job_id":"d82ab830-739f-43d4-8919-94d992756cae","html_url":"https://github.com/open-turo/action-git-auth","commit_stats":{"total_commits":119,"total_committers":7,"mean_commits":17.0,"dds":0.2857142857142857,"last_synced_commit":"d25f0bd329fa016a3f3ebe8f9185651525c4fd79"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-turo%2Faction-git-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-turo%2Faction-git-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-turo%2Faction-git-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-turo%2Faction-git-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-turo","download_url":"https://codeload.github.com/open-turo/action-git-auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248744110,"owners_count":21154810,"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":["action","actions","auth","authentication","gha","git","github","javascript"],"created_at":"2024-11-15T17:15:44.312Z","updated_at":"2025-04-13T16:33:19.437Z","avatar_url":"https://github.com/open-turo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `open-turo/action-git-auth`\n\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- action-docs-description --\u003e\n## Description\n\nThis [GitHub Action](https://docs.github.com/en/actions) provides a way to configure credentials for any utility that uses the git command, or any utility that uses the git command as a subprocess, or any utility that uses the git configuration file in its authentication and cloning.\n\u003c!-- action-docs-description --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\nAuthenticates using URL patterns that match https://_server_/_prefix_\\*. If no\nmatching URL exists, the action will not use the authentication credentials\npresented via the `github-personal-access-token` input.\n\nSee\n[here](https://portal2portal.blogspot.com/2021/09/today-i-learned-more-about-git-config.html)\nfor some additional background on git config as it relates to the problem this\naction is solving, and\n[here](https://git-scm.com/docs/git-config#Documentation/git-config.txt-urlltbasegtinsteadOf)\nfor general reference on git config from the official git documentation.\n\n[![Release](https://img.shields.io/github/v/release/open-turo/action-git-auth)](https://github.com/open-turo/action-git-auth/releases/)\n[![Tests pass/fail](https://img.shields.io/github/workflow/status/open-turo/action-git-auth/CI)](https://github.com/open-turo/action-git-auth/actions/)\n[![License](https://img.shields.io/github/license/open-turo/action-git-auth)](./LICENSE)\n[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg)](https://github.com/dwyl/esta/issues)\n![CI](https://github.com/open-turo/action-git-auth/actions/workflows/release.yaml/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/open-turo/action-git-auth/badge.svg?branch=main)](https://coveralls.io/github/open-turo/action-git-auth?branch=main)\n[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)\n[![Conventional commits](https://img.shields.io/badge/conventional%20commits-1.0.2-%23FE5196?logo=conventionalcommits\u0026logoColor=white)](https://conventionalcommits.org)\n[![Join us!](https://img.shields.io/badge/Turo-Join%20us%21-593CFB.svg)](https://turo.com/jobs)\n\n## Usage\n\n### Authenticate using default URL of https:///\\*\n\n```yaml\njobs:\n    checkout:\n        runs-on: ubuntu-latest\n        steps:\n            - name: Authorize\n              uses: open-turo/action-git-auth@v2\n              with:\n                  github-personal-access-token:\n                      ${{ secrets.PERSONAL_ACCESS_TOKEN }}\n```\n\n### Authenticate using server specific URL of https://githubenterprise.examplecompany.com/*\n\n```yaml\njobs:\n    checkout:\n        runs-on: ubuntu-latest\n        steps:\n            - name: Authorize\n              uses: open-turo/action-git-auth@v2\n              with:\n                  server: githubenterprise.examplecompany.com\n                  github-personal-access-token:\n                      ${{ secrets.PERSONAL_ACCESS_TOKEN }}\n```\n\n### Authenticate using server and prefix specific URL of https://git.example.com/github-org\\*\n\n```yaml\njobs:\n    checkout:\n        runs-on: ubuntu-latest\n        steps:\n            - name: Authorize\n              uses: open-turo/action-git-auth@v2\n              with:\n                  server: git.example.com\n                  prefix: github-org\n                  github-personal-access-token:\n                      ${{ secrets.PERSONAL_ACCESS_TOKEN }}\n```\n\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- action-docs-inputs --\u003e\n## Inputs\n\n| parameter | description | required | default |\n| --- | --- | --- | --- |\n| github-personal-access-token | A GitHub personal access token that has appropriate access in the consumer GitHub repository that will be used for authentication with GitHub. | `true` |  |\n| prefix | The prefix to use for the URL path rewrite. This will often be an organization name if you wish to limit which repositories are accessible. | `false` |  |\n| server | The name of the GitHub server to use, if not using hosted. This is useful if you are running this action against a GitHub Enterprise instance. | `false` |  |\n\u003c!-- action-docs-inputs --\u003e\n\n\u003c!-- action-docs-outputs --\u003e\n\n\u003c!-- action-docs-outputs --\u003e\n\n\u003c!-- action-docs-runs --\u003e\n## Runs\n\nThis action is a `node20` action.\n\u003c!-- action-docs-runs --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n## Development\n\nThis section describes how to develop the project.\n\n### Testing\n\nIn order to run tests for local development, first run `npm install` to download\ndependencies, and then run `npm test` to run the test suite. This library uses\n`jest` for its test suite.\n\n### Packaging\n\nIn order for GitHub Actions to use this library, it must be packaged into the\n`dist/` directory. As part of any pull request which changes the library, this\nshould be run.\n\n**Run prepare**:\n\n```bash\nnpm run prepare  # Generate the dist/ files\ngit add dist/  # Add the dist/ files to the commit\n```\n\n### Releasing\n\nReleases are created according to the [Semantic Versioning](https://semver.org/)\nprocess. We also use the\n[Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) messages\nto determine what the release version is.\n\nOnce a PR has been merged, the repository maintainer is responsible for creating\na new release, as well as moving the floating release tag to the new commit.\n\n## Get Help\n\nPlease review Issues, post new Issues against this repository as needed.\n\n## Contributions\n\nPlease see [here](https://github.com/open-turo/contributions) for guidelines on\nhow to contribute to this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-turo%2Faction-git-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-turo%2Faction-git-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-turo%2Faction-git-auth/lists"}