We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6f9a4a commit f5b641dCopy full SHA for f5b641d
scripts/release/module-automation/commons.js
@@ -204,7 +204,10 @@ async function githubAuthentication(moduleInfo) {
204
""
205
)}`
206
);
207
- await execShellCommand(`echo "${process.env.GH_PAT}" | gh auth login --with-token`);
+ // gh CLI will use GH_TOKEN environment variable if set, otherwise authenticate via stdin
208
+ if (!process.env.GH_TOKEN) {
209
+ await execShellCommand(`echo "${process.env.GH_PAT}" | gh auth login --with-token`);
210
+ }
211
}
212
213
async function cloneRepo(githubUrl, localFolder, branchName = "main") {
0 commit comments