mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
35a605ec05
Fix #19545 Signed-off-by: Yang Jiao <jiaoya@vmware.com>
11 lines
311 B
Python
11 lines
311 B
Python
# -*- coding: utf-8 -*-
|
|
import base
|
|
|
|
def generate_cert():
|
|
command = ["notation", "cert", "generate-test", "--default", "wabbit-networks.io"]
|
|
base.run_command(command)
|
|
|
|
def sign_artifact(artifact):
|
|
command = ["notation", "sign", "-d", "--allow-referrers-api", artifact]
|
|
base.run_command(command)
|