Developer & DevOps
Recover and Validate GitHub Credentials Securely
11 nodes
281
143
Automatic trigger
Workflow Description
Automation that retrieves saved GitHub credentials, validates them against GitHub API, and stores verified tokens in n8n's secure variables. Enables safe credential recovery without exposing sensitive data in logs or files.
How it works
- 1.Trigger automation manually or on-demand for credential recovery
- 2.Connect to GitHub and retrieve stored credentials file or backup
- 3.Parse and extract usernames, API keys, and access tokens from file
- 4.Validate each credential set against GitHub API endpoints
- 5.Store only verified credentials in n8n secure environment variables
Use cases
- Recover lost OAuth tokens or Personal Access Tokens from archived GitHub accounts
- Migrate GitHub credentials to a centralized secrets management system
- Regularly audit and validate GitHub credentials, alerting team if tokens expire
Requirements
- Active GitHub account with access permissions to repositories and keys
- GitHub API key or Personal Access Token for authorization
- Backup file containing credentials in JSON or text format
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
GitHub
N8N
Details
Trigger
Automatic trigger
Nodes
11
Apps
2
Views
281
Downloads
143
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (11)
/
When clicking ‘Test workflow’
Manual Trigger
Sticky Note1
Sticky Note
Globals
Set
Sticky Note4
Sticky Note
Sticky Note
Sticky Note
Get all files in given path
HTTP Request
Split the result
Split Out
Get file content from GitHub
Github
Convert files to JSON
Extract From File
Restore n8n Credentials
N8N
Check for skipped Credentials
If