Merge pull request #405 from gabriel-samfira/ensure-token

Ensure that admin token exists
This commit is contained in:
Gabriel 2025-05-22 00:38:47 +03:00 committed by GitHub
commit ed8e11e244
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,6 +41,10 @@ func (s *ScaleSetClient) GenerateJitRunnerConfig(ctx context.Context, runnerName
return params.RunnerScaleSetJitRunnerConfig{}, err
}
if err := s.ensureAdminInfo(ctx); err != nil {
return params.RunnerScaleSetJitRunnerConfig{}, fmt.Errorf("failed to ensure admin info: %w", err)
}
serviceURL, err := s.actionsServiceInfo.GetURL()
if err != nil {
return params.RunnerScaleSetJitRunnerConfig{}, fmt.Errorf("failed to get pipeline URL: %w", err)