Fixed missing special characters that can occur in an ExponentToken
All checks were successful
Build & Publish to GHCR / build (push) Successful in 45s
All checks were successful
Build & Publish to GHCR / build (push) Successful in 45s
This commit is contained in:
parent
559a9c913f
commit
cbf3c662a1
@ -56,7 +56,7 @@ jobs:
|
|||||||
NEW_IMAGE="${{ env.IMAGE_PATH }}:$NEW_TAG"
|
NEW_IMAGE="${{ env.IMAGE_PATH }}:$NEW_TAG"
|
||||||
BRANCH_NAME="update-backend-api-$NEW_TAG"
|
BRANCH_NAME="update-backend-api-$NEW_TAG"
|
||||||
git config user.name "automation-bot"
|
git config user.name "automation-bot"
|
||||||
git config user.email "automation-bot@gansejunge.com"
|
git config user.email "dev@gansejunge.com"
|
||||||
|
|
||||||
sed -i "s|ghcr.io/$GHCR_ORG/$IMAGE_NAME:[0-9]\+|$NEW_IMAGE|g" "$OPS_PATH"
|
sed -i "s|ghcr.io/$GHCR_ORG/$IMAGE_NAME:[0-9]\+|$NEW_IMAGE|g" "$OPS_PATH"
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@ def is_valid_token(token: str) -> bool:
|
|||||||
Validates the format ExponentPushToken[<22-letter-long-string>]
|
Validates the format ExponentPushToken[<22-letter-long-string>]
|
||||||
"""
|
"""
|
||||||
|
|
||||||
pattern = r"^ExponentPushToken\[([A-Za-z0-9]{22})\]$"
|
pattern = r"^ExponentPushToken\[([A-Za-z0-9_\-]{22})\]$"
|
||||||
if not re.match(pattern, token):
|
if not re.match(pattern, token):
|
||||||
logger.debug(f"Invalid token format: {token}")
|
logger.debug(f"Invalid token format: {token}")
|
||||||
return False
|
return False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user