mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-07-23 03:53:16 +08:00
chore(schemas): runtime-recommended 收紧 sha256 为必填(6 平台齐全) (#46)
与主仓库 lib/schemas/agent-service/runtime-manifest.ts 同源导出,强化归档防篡改校验
This commit is contained in:
@@ -15,7 +15,8 @@
|
|||||||
"name",
|
"name",
|
||||||
"version",
|
"version",
|
||||||
"distTag",
|
"distTag",
|
||||||
"archives"
|
"archives",
|
||||||
|
"sha256"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
@@ -72,6 +73,14 @@
|
|||||||
"sha256": {
|
"sha256": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "各平台归档的 SHA-256 校验值(十六进制小写)。构建脚本下载后校验,防止归档被镜像/代理篡改或截断",
|
"description": "各平台归档的 SHA-256 校验值(十六进制小写)。构建脚本下载后校验,防止归档被镜像/代理篡改或截断",
|
||||||
|
"required": [
|
||||||
|
"darwin-arm64",
|
||||||
|
"darwin-x64",
|
||||||
|
"win32-x64",
|
||||||
|
"win32-arm64",
|
||||||
|
"linux-x64",
|
||||||
|
"linux-arm64"
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"darwin-arm64": {
|
"darwin-arm64": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -114,7 +123,8 @@
|
|||||||
"description": "Node.js 推荐版本(官方 dist 归档,经内置 Volta 安装)",
|
"description": "Node.js 推荐版本(官方 dist 归档,经内置 Volta 安装)",
|
||||||
"required": [
|
"required": [
|
||||||
"version",
|
"version",
|
||||||
"archives"
|
"archives",
|
||||||
|
"sha256"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"version": {
|
"version": {
|
||||||
@@ -167,6 +177,14 @@
|
|||||||
"sha256": {
|
"sha256": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "各平台归档的 SHA-256 校验值(十六进制小写)。构建脚本下载后校验,防止归档被镜像/代理篡改或截断",
|
"description": "各平台归档的 SHA-256 校验值(十六进制小写)。构建脚本下载后校验,防止归档被镜像/代理篡改或截断",
|
||||||
|
"required": [
|
||||||
|
"darwin-arm64",
|
||||||
|
"darwin-x64",
|
||||||
|
"win32-x64",
|
||||||
|
"win32-arm64",
|
||||||
|
"linux-x64",
|
||||||
|
"linux-arm64"
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"darwin-arm64": {
|
"darwin-arm64": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
Reference in New Issue
Block a user