https://github.com/kota65535/github-git-config-action
GitHub Action for configuring git credentials, username etc.
https://github.com/kota65535/github-git-config-action
git github-actions
Last synced: 5 months ago
JSON representation
GitHub Action for configuring git credentials, username etc.
- Host: GitHub
- URL: https://github.com/kota65535/github-git-config-action
- Owner: kota65535
- License: mit
- Created: 2023-02-26T14:46:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-01-14T06:51:51.000Z (5 months ago)
- Last Synced: 2026-01-14T10:31:17.330Z (5 months ago)
- Topics: git, github-actions
- Language: JavaScript
- Homepage:
- Size: 449 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-git-config-action
GitHub Action for configuring git credentials, username etc.
- All [git-config](https://git-scm.com/docs/git-config#_variables) options are available
- Easily overrides credentials set by [checkout](https://github.com/actions/checkout) action's `persist-credentials`
## Usage
```yaml
- name: Configure git
uses: kota65535/github-git-config-action@v1
with:
user.name: Tomohiko Ozawa # Set user.name
user.email: kota65535@gmail.com # Set user.email
github-token: ${{ secrets.PAT }} # Use a personal access token as git credentials
```
## Inputs
| Name | Description | Required | Default |
|----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|----------|--------------|
| `scope` | Scope (ex: `global`, `local`).
See [here](https://git-scm.com/docs/git-config#SCOPES) for more details | No | `global` |
| `github-token` | GitHub personal access token to use as git credentials | No | N/A |
| `github-host` | GitHub server hostname | No | `github.com` |
| [**All config variables**](https://git-scm.com/docs/git-config#_variables) | Value to be set for the git config variable (ex. `user.name`, `user.email`) | No | N/A |