mirror of
https://github.com/gradle/actions.git
synced 2025-04-22 02:39:19 +08:00
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:
parent
e3bc05f224
commit
246765b254
@ -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[]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user