diff --git a/packit_service/worker/reporting/reporters/pagure.py b/packit_service/worker/reporting/reporters/pagure.py index 4cb15ffdc..843368b1a 100644 --- a/packit_service/worker/reporting/reporters/pagure.py +++ b/packit_service/worker/reporting/reporters/pagure.py @@ -50,7 +50,8 @@ def set_status( # generate a custom uid from the check_name, # so that we can update flags we set previously, # instead of creating new ones (Pagure specific behaviour) - uid = hashlib.sha256(check_name.encode()).hexdigest() + # the max length of uid is 32 chars + uid = hashlib.sha256(check_name.encode()).hexdigest()[:32] self.pull_request_object.set_flag( username=check_name, comment=description,