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 GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Feb 6, 2026
License
GPL 3.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-rindeal/git-identity-from-username@94769d7aeb8a60a008c8347b076feb5fe5e14237 # v2.2.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
usernameThe GitHub username to fetch details foryesgithub-actions[bot]
localUse local Git config instead of globalnofalse
use-public-emailUse the public email of the GitHub user instead of the user's GitHub noreply addressnofalse
git-name-tmplTemplate for the Git user.name, using placeholders for user fields (e.g., '{{name}}')no
failover-nameName to use if API is not availableno
failover-emailEmail to use if API is not availableno
github-tokenThe GitHub token used to authenticate API requestsyes${{ github.token }}
namedescription
user-jsonThe GitHub API user object in JSON format
git-user-nameThe configured Git user.name
git-user-emailThe configured Git user.email