In netlify.toml how to access Github API Access Token of Git Gateway

Hi @ankitpandeypagefreez . There is no API call or other action that you can take to make us show you or send you the value of that token. Like many auth tokens in many services including ours, the field is “write-only” and thereafter not visible to anyone - you included.

This protects you in case someone gains access to your account. So if you need to know that token - you’ll need to have generated it at GitHub, saved a copy, and pasted a copy here.

Put another way, we intentionally restrict your git access during build to protect you from attackers who may gain access to our build systems - they have no ability to connect to git with elevated permissions as a protection. This article describes a bit more of the why: [Support Guide] How do I access private repositories in the build environment?

1 Like