Bind releases to licensing build signatures
This commit is contained in:
7 files changed
+96
-15
No files matched your search
@@ -218,9 +218,15 @@ def main() -> None:
|
||||
or manifest.get("schemaVersion") != 2
|
||||
or manifest.get("version") != arguments.version
|
||||
or manifest.get("buildType") != "RelWithDebInfo"
|
||||
or not isinstance(manifest.get("buildSignature"), str)
|
||||
or not manifest["buildSignature"]
|
||||
or len(manifest["buildSignature"]) > 256
|
||||
or any(
|
||||
character in manifest["buildSignature"] for character in "\r\n\0"
|
||||
)
|
||||
):
|
||||
fail(
|
||||
"release manifest schema/version/build type does not match the feed"
|
||||
"release manifest schema/version/build type/signature does not match the feed"
|
||||
)
|
||||
|
||||
source_epoch = os.environ.get("SOURCE_DATE_EPOCH")
|
||||
@@ -267,6 +273,7 @@ def main() -> None:
|
||||
if manifest_path is not None:
|
||||
release["releaseManifestSha256"] = digest(manifest_path)
|
||||
release["buildType"] = manifest["buildType"]
|
||||
release["buildSignature"] = manifest["buildSignature"]
|
||||
|
||||
payload_document = {
|
||||
"schemaVersion": 1,
|
||||
|
||||
Reference in new issue
Block a user