You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🚀 Feature: Allow base64 for GitHub private key #7732
Activity
mthirumalai2905 commentedon Mar 24, 2024
Whats the issue here should we have to add Base64 encryption?
byawitz commentedon Mar 25, 2024
Adding a private key in
.envfiles can be annoying as it requires you to remove all new lines, and change it to\n. This way it can be easier.mthirumalai2905 commentedon Mar 29, 2024
Please Have a look into this @byawitz
//Import atob
const atob = require('atob');
// Read the base64 encoded private key from the environment variable
const githubPrivateKeyBase64 = process.env._APP_VCS_GITHUB_PRIVATE_KEY_BASE64;
// Decode the base64 encoded string to get the original GitHub private key
const githubPrivateKey = atob(githubPrivateKeyBase64);
//ready to use
console.log('GitHub Private Key:', githubPrivateKey);
HarshMN2345 commentedon Sep 15, 2026
Fixed in #13695