Skip to content

feat(agent/agentcontainers): fall back to workspace folder name #18466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 23, 2025
Merged
Prev Previous commit
Next Next commit
chore: replace empty check with AgentNameRegex check
  • Loading branch information
DanielleMaywood committed Jun 23, 2025
commit 4fdb580257e43d70bf33261aeab90c855e47d2dd
1 change: 1 addition & 0 deletions agent/agentcontainers/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ func safeAgentName(name string, friendlyName string) string {
name = strings.Trim(name, "-")

if name != "" {
if provisioner.AgentNameRegex.Match([]byte(name)) {
return name
}

Expand Down