Fix backslashes being accepted by sanitizeArtifactName
This commit is contained in:
parent
7fd62151d9
commit
1eab40885f
6 changed files with 9 additions and 4 deletions
2
lib/debug-artifacts.js
generated
2
lib/debug-artifacts.js
generated
|
|
@ -56,7 +56,7 @@ const logging_1 = require("./logging");
|
|||
const tools_features_1 = require("./tools-features");
|
||||
const util_1 = require("./util");
|
||||
function sanitizeArtifactName(name) {
|
||||
return name.replace(/[^a-zA-Z0-9_\\-]+/g, "");
|
||||
return name.replace(/[^a-zA-Z0-9_-]+/g, "");
|
||||
}
|
||||
/**
|
||||
* Upload Actions SARIF artifacts for debugging when CODEQL_ACTION_DEBUG_COMBINED_SARIF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue