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
@@ -212,7 +212,7 @@ public async Task Handle(MigrateRepoCommandArgs args)
212
212
_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.");
// 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