trustedSourceRepoPatterns property
List of trusted source code repository URL patterns.
These patterns match the full repository URL without its scheme (e.g.
https://
). The patterns must not include schemes. For example, the
pattern source.cloud.google.com/my-project/my-repo-name
matches the
following URLs: - source.cloud.google.com/my-project/my-repo-name
-
git+ssh://source.cloud.google.com/my-project/my-repo-name
-
https://source.cloud.google.com/my-project/my-repo-name
A pattern
matches a URL either exactly or with *
wildcards. *
can be used in
only two ways: 1. trailing *
after hosturi/ to match varying endings; 2.
trailing **
after hosturi/ to match /
as well. *
and **
can only
be used as wildcards and can only occur at the end of the pattern after a
/
. (So it's not possible to match a URL that contains literal *
.) For
example: - github.com/my-project/my-repo
is valid to match a single repo
github.com/my-project / *
will match all direct repos inmy-project
github.com / * *
matches all repos in GitHub
Implementation
core.List<core.String>? trustedSourceRepoPatterns;