Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/cli/add_interactive_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (c *AddInteractiveConfig) selectAIEngineAndKey() error {

// If engine is already overridden, skip selection
if c.EngineOverride != "" {
fmt.Fprintln(os.Stderr, console.FormatInfoMessage(fmt.Sprintf("Using coding agent: %s", c.EngineOverride)))
fmt.Fprintln(os.Stderr, console.FormatInfoMessage("Using coding agent: "+c.EngineOverride))
return c.configureEngineAPISecret(c.EngineOverride)
}

Expand Down
5 changes: 3 additions & 2 deletions pkg/workflow/permissions_compiler_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
package workflow

import (
"errors"
"fmt"
"os"
)
Expand Down Expand Up @@ -162,11 +163,11 @@ func validateEngineAuthPermissions(workflowData *WorkflowData, workflowPermissio
}

if workflowPermissions == nil {
return fmt.Errorf("engine.auth.type: github-oidc requires permissions.id-token: write")
return errors.New("engine.auth.type: github-oidc requires permissions.id-token: write")
}

if level, exists := workflowPermissions.Get(PermissionIdToken); !exists || level != PermissionWrite {
return fmt.Errorf("engine.auth.type: github-oidc requires permissions.id-token: write")
return errors.New("engine.auth.type: github-oidc requires permissions.id-token: write")
Comment on lines 165 to +170
}

return nil
Expand Down