mirror of
https://github.com/hohn/sarif-cli.git
synced 2025-12-16 17:23:03 +01:00
Update how project_id is generated
previously relied on assumption: naming like: <org>/<project> in repositoryUri now just uses full repositoryUri
This commit is contained in:
@@ -4,4 +4,4 @@ from hashlib import blake2b
|
||||
def hash_unique(item_to_hash):
|
||||
h = blake2b(digest_size = 8)
|
||||
h.update(item_to_hash)
|
||||
return abs(int.from_bytes(h.digest(), byteorder='big'))
|
||||
return int.from_bytes(h.digest(), byteorder='big')
|
||||
|
||||
Reference in New Issue
Block a user