Update key hash in generateTargetKey
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com> Signed-off-by: Kashish Mittal <113269381+04kash@users.noreply.github.com> Signed-off-by: Kashish Mittal <kmittal@redhat.com>
This commit is contained in:
committed by
Kashish Mittal
parent
2fa071307f
commit
a558eb4ea1
@@ -26,7 +26,7 @@ export function generateStableHash(entity: Entity) {
|
||||
|
||||
export function generateTargetKey(target: string) {
|
||||
return target.length > 255
|
||||
? `${target.slice(0, 150)}#sha256:${createHash('sha256')
|
||||
? `${target.slice(0, 180)}#sha256:${createHash('sha256')
|
||||
.update(target)
|
||||
.digest('hex')}`
|
||||
: target;
|
||||
|
||||
Reference in New Issue
Block a user