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
- Fixed issue where CLI commands required GH_PAT environment variable even when GitHub tokens were provided via command-line arguments (--github-source-pat, --github-target-pat). All migration commands now work correctly with CLI-only token authentication.
@@ -214,7 +214,7 @@ public async Task Handle(MigrateRepoCommandArgs args)
214
214
_log.LogInformation($"Migration log available at {migrationLogUrl} or by running `gh {CliContext.RootCommand} download-logs --github-target-org {args.GithubTargetOrg} --target-repo {args.TargetRepo}`");
// Validate that we have tokens after all resolution attempts
35
+
if(string.IsNullOrWhiteSpace(sourceToken))
36
+
{
37
+
thrownewOctoshiftCliException("Source GitHub Personal Access Token is required. Provide it via --github-source-pat argument or GH_SOURCE_PAT/GH_PAT environment variable.");
38
+
}
39
+
40
+
if(string.IsNullOrWhiteSpace(targetToken))
41
+
{
42
+
thrownewOctoshiftCliException("Target GitHub Personal Access Token is required. Provide it via --github-target-pat argument or GH_PAT environment variable.");
0 commit comments