Commit 8dbe9a38 authored by daz's avatar daz Committed by Daz DeBoer
Browse files

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
parent 9c343072
Loading
Loading
Loading
Loading
+1 −1
Changes for sources/src/develocity/short-lived-token.ts: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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[]) {