Skip to content

Commit

Permalink
Refine the cleaning regular expression pattern
Browse files Browse the repository at this point in the history
Signed-off-by: Akashdeep Dhar <[email protected]>
  • Loading branch information
gridhead committed Jan 16, 2025
1 parent b30130b commit 76d1c71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pagure_exporter/conf/standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@
destcloc = "UNAVAILABLE"

# Regular expression to help detection of the GitLab Runners token in response body
detect = "\"runners_token\":\"[A-Za-z0-9]+\""
detect = r"\"runners_token\":\"([^\"]*)\""

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

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

0 comments on commit 76d1c71

Please sign in to comment.