File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,9 +72,10 @@ func New(ctx context.Context, cfg *config.Config) *Launcher {
7272 logger .LogInfo ("startup" , "GitHub Actions OIDC provider initialized" )
7373 }
7474
75- // Pre-populate serverErrors for OIDC-misconfigured servers so /health
76- // reports them as "error" immediately at startup, not only after the
77- // first failed request.
75+ // Defensive fallback: pre-populate serverErrors for OIDC-misconfigured servers
76+ // so /health reports them as "error" immediately at startup. Normal config
77+ // validation (validateAuthConfig) catches this earlier; this handles cases
78+ // where validation was bypassed (e.g., tests constructing configs manually).
7879 serverErrors := make (map [string ]string )
7980 for serverID , serverCfg := range cfg .Servers {
8081 if serverCfg .Auth != nil && serverCfg .Auth .Type == "github-oidc" && oidcProvider == nil {
You can’t perform that action at this time.
0 commit comments