mirror of
https://github.com/actions/github-script.git
synced 2026-02-09 11:51:35 +00:00
Add underscore to valid orchestration ID characters
Co-authored-by: TingluoHuang <1750815+TingluoHuang@users.noreply.github.com>
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -36268,8 +36268,8 @@ function getUserAgentWithOrchestrationId(userAgent) {
|
||||
if (!orchestrationId) {
|
||||
return userAgent;
|
||||
}
|
||||
// Sanitize orchestration ID - only keep alphanumeric, dots, and hyphens
|
||||
const sanitized = orchestrationId.replace(/[^a-zA-Z0-9.-]/g, '');
|
||||
// Sanitize orchestration ID - only keep alphanumeric, dots, hyphens, and underscores
|
||||
const sanitized = orchestrationId.replace(/[^a-zA-Z0-9._-]/g, '');
|
||||
if (!sanitized) {
|
||||
return userAgent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user