Developer & DevOps

Recover and Validate GitHub Credentials Securely

11 nodes 281 143 Automatic trigger
Download

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. 1.Trigger automation manually or on-demand for credential recovery
  2. 2.Connect to GitHub and retrieve stored credentials file or backup
  3. 3.Parse and extract usernames, API keys, and access tokens from file
  4. 4.Validate each credential set against GitHub API endpoints
  5. 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. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (11)

/

When clicking ‘Test workflow’

Manual Trigger

#1

Sticky Note1

Sticky Note

#2

Globals

Set

#3

Sticky Note4

Sticky Note

#4

Sticky Note

Sticky Note

#5

Get all files in given path

HTTP Request

#6

Split the result

Split Out

#7

Get file content from GitHub

Github

#8

Convert files to JSON

Extract From File

#9

Restore n8n Credentials

N8N

#10

Check for skipped Credentials

If

#11