actions-rindeal/Set Up Git Identity from GitHub Username
A GitHub Action to configure Git user.name and user.email based on a GitHub username, with options for local or global configuration and failover settings.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Feb 6, 2026
- License
- GPL 3.0
Pinned Snippet
uses: actions-rindeal/git-identity-from-username@94769d7aeb8a60a008c8347b076feb5fe5e14237 # v2.2.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| username | The GitHub username to fetch details for | yes | github-actions[bot] |
| local | Use local Git config instead of global | no | false |
| use-public-email | Use the public email of the GitHub user instead of the user's GitHub noreply address | no | false |
| git-name-tmpl | Template for the Git user.name, using placeholders for user fields (e.g., '{{name}}') | no | — |
| failover-name | Name to use if API is not available | no | — |
| failover-email | Email to use if API is not available | no | — |
| github-token | The GitHub token used to authenticate API requests | yes | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| user-json | The GitHub API user object in JSON format |
| git-user-name | The configured Git user.name |
| git-user-email | The configured Git user.email |