Skip to content

Commit 7821fc3

Browse files
committed
Refine the cleaning regular expression pattern
Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
1 parent 15dedd1 commit 7821fc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pagure_exporter/conf/standard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@
117117
destcloc = "UNAVAILABLE"
118118

119119
# Regular expression to help detection of the GitLab Runners token in response body
120-
detect = "\"runners_token\":\"[A-Za-z0-9]+\""
120+
detect = r"\b(?:glrt-|GR1348941)[\w\-]{20,23}"
121121

122122
# Placeholder string to substitute the detected GitLab Runners tokens in response body
123-
cutout = "\"runners_token\":\"SECURE_STANDARD_PASSWORD_HERE\""
123+
cutout = "EXPUNGED"
124124

125125
# GitLab client object to be used while interacting with the destination namespace
126126
gobj = None

0 commit comments

Comments
 (0)