Skip to content

Commit 8dbe9a3

Browse files
committed
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
1 parent 9c34307 commit 8dbe9a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/src/develocity/short-lived-token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ type HostnameAccessKey = {
156156
}
157157

158158
export class DevelocityAccessCredentials {
159-
static readonly accessKeyRegexp = /^(\S+=\w+)(;\S+=\w+)*$/
159+
static readonly accessKeyRegexp = /^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/
160160
readonly keys: HostnameAccessKey[]
161161

162162
private constructor(allKeys: HostnameAccessKey[]) {

0 commit comments

Comments
 (0)