Update DV access key regex to be more selective

This should address the code-scanning alert
  https://github.com/gradle/actions/security/code-scanning/1
This commit is contained in:
daz 2024-06-13 13:06:35 -06:00 committed by Daz DeBoer
parent 9c3430720d
commit 8dbe9a3802

View file

@ -156,7 +156,7 @@ type HostnameAccessKey = {
}
export class DevelocityAccessCredentials {
static readonly accessKeyRegexp = /^(\S+=\w+)(;\S+=\w+)*$/
static readonly accessKeyRegexp = /^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/
readonly keys: HostnameAccessKey[]
private constructor(allKeys: HostnameAccessKey[]) {