James Read 19 часов назад
Родитель
Сommit
2a794bf91a
4 измененных файлов с 55 добавлено и 71 удалено
  1. 3 2
      .github/workflows/build-and-release.yml
  2. 44 67
      frontend/package-lock.json
  3. 1 1
      frontend/package.json
  4. 7 1
      var/sbom/generate.sh

+ 3 - 2
.github/workflows/build-and-release.yml

@@ -26,9 +26,10 @@ on:
       - 'var/sbom/**'
       - 'var/windows/**'
   workflow_dispatch:
+  # No tag trigger: semantic-release publishes from the main branch push and
+  # pushes the tag with CONTAINER_TOKEN, which would otherwise start a second
+  # run of the same commit that cannot publish anything.
   push:
-    tags:
-      - '*'
     branches:
       - main
       - next

+ 44 - 67
frontend/package-lock.json

@@ -17,7 +17,7 @@
 				"@xterm/addon-web-links": "^0.12.0",
 				"@xterm/xterm": "^6.0.0",
 				"iconify-icon": "^3.0.5",
-				"picocrank": "^1.42.0",
+				"picocrank": "^1.42.1",
 				"vue": "^3.5.46",
 				"vue-i18n": "^11.4.23",
 				"vue-router": "^5.5.1"
@@ -297,6 +297,7 @@
 			"version": "2.0.0-beta.2",
 			"resolved": "https://registry.npmjs.org/@emnapi/core/-/core-2.0.0-beta.2.tgz",
 			"integrity": "sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==",
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"dependencies": {
@@ -308,6 +309,7 @@
 			"version": "2.0.0-beta.2",
 			"resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-2.0.0-beta.2.tgz",
 			"integrity": "sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==",
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"dependencies": {
@@ -318,6 +320,7 @@
 			"version": "2.2.0",
 			"resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-2.2.0.tgz",
 			"integrity": "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==",
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"dependencies": {
@@ -670,6 +673,7 @@
 			"version": "1.2.6",
 			"resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.6.tgz",
 			"integrity": "sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==",
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"dependencies": {
@@ -691,6 +695,7 @@
 			"version": "0.156.0",
 			"resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.156.0.tgz",
 			"integrity": "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==",
+			"devOptional": true,
 			"license": "MIT",
 			"funding": {
 				"url": "https://github.com/sponsors/oxc-project"
@@ -703,6 +708,7 @@
 			"cpu": [
 				"arm"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"os": [
@@ -719,6 +725,7 @@
 			"cpu": [
 				"arm64"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"os": [
@@ -735,6 +742,7 @@
 			"cpu": [
 				"arm64"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"os": [
@@ -751,6 +759,7 @@
 			"cpu": [
 				"x64"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"os": [
@@ -767,6 +776,7 @@
 			"cpu": [
 				"x64"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"os": [
@@ -783,6 +793,7 @@
 			"cpu": [
 				"arm"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"os": [
@@ -799,6 +810,7 @@
 			"cpu": [
 				"arm64"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"os": [
@@ -815,6 +827,7 @@
 			"cpu": [
 				"arm64"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"os": [
@@ -831,6 +844,7 @@
 			"cpu": [
 				"ppc64"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"os": [
@@ -847,6 +861,7 @@
 			"cpu": [
 				"s390x"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"os": [
@@ -863,6 +878,7 @@
 			"cpu": [
 				"x64"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"os": [
@@ -879,6 +895,7 @@
 			"cpu": [
 				"x64"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"os": [
@@ -895,6 +912,7 @@
 			"cpu": [
 				"arm64"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"os": [
@@ -911,6 +929,7 @@
 			"cpu": [
 				"wasm32"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"dependencies": {
@@ -929,6 +948,7 @@
 			"cpu": [
 				"arm64"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"os": [
@@ -945,6 +965,7 @@
 			"cpu": [
 				"x64"
 			],
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"os": [
@@ -1016,6 +1037,7 @@
 			"version": "0.10.4",
 			"resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.4.tgz",
 			"integrity": "sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==",
+			"dev": true,
 			"license": "MIT",
 			"optional": true,
 			"dependencies": {
@@ -1282,6 +1304,7 @@
 			"version": "6.0.11",
 			"resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.11.tgz",
 			"integrity": "sha512-m48lskIUJGlB6qUiYhDMI8nd2ngeidz2U4nKTjqI13cFMu5rH8JeEILPkDtK9Fk/TjBA2pkj8AlbenqDaKu+ww==",
+			"dev": true,
 			"license": "MIT",
 			"dependencies": {
 				"@rolldown/pluginutils": "^1.0.1"
@@ -1678,21 +1701,6 @@
 				"qified": "^0.10.1"
 			}
 		},
-		"node_modules/chokidar": {
-			"version": "5.0.0",
-			"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz",
-			"integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==",
-			"license": "MIT",
-			"dependencies": {
-				"readdirp": "^5.0.0"
-			},
-			"engines": {
-				"node": ">= 20.19.0"
-			},
-			"funding": {
-				"url": "https://paulmillr.com/funding/"
-			}
-		},
 		"node_modules/colord": {
 			"version": "2.14.1",
 			"resolved": "https://registry.npmjs.org/colord/-/colord-2.14.1.tgz",
@@ -1787,6 +1795,7 @@
 			"version": "2.1.2",
 			"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
 			"integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+			"devOptional": true,
 			"license": "Apache-2.0",
 			"engines": {
 				"node": ">=8"
@@ -2241,6 +2250,7 @@
 			"version": "2.3.3",
 			"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
 			"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+			"dev": true,
 			"hasInstallScript": true,
 			"license": "MIT",
 			"optional": true,
@@ -2468,6 +2478,7 @@
 			"version": "1.33.0",
 			"resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz",
 			"integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==",
+			"devOptional": true,
 			"license": "MPL-2.0",
 			"dependencies": {
 				"detect-libc": "^2.0.3"
@@ -2500,6 +2511,7 @@
 			"cpu": [
 				"arm64"
 			],
+			"dev": true,
 			"license": "MPL-2.0",
 			"optional": true,
 			"os": [
@@ -2520,6 +2532,7 @@
 			"cpu": [
 				"arm64"
 			],
+			"dev": true,
 			"license": "MPL-2.0",
 			"optional": true,
 			"os": [
@@ -2540,6 +2553,7 @@
 			"cpu": [
 				"x64"
 			],
+			"dev": true,
 			"license": "MPL-2.0",
 			"optional": true,
 			"os": [
@@ -2560,6 +2574,7 @@
 			"cpu": [
 				"x64"
 			],
+			"dev": true,
 			"license": "MPL-2.0",
 			"optional": true,
 			"os": [
@@ -2580,6 +2595,7 @@
 			"cpu": [
 				"arm"
 			],
+			"dev": true,
 			"license": "MPL-2.0",
 			"optional": true,
 			"os": [
@@ -2600,6 +2616,7 @@
 			"cpu": [
 				"arm64"
 			],
+			"dev": true,
 			"license": "MPL-2.0",
 			"optional": true,
 			"os": [
@@ -2620,6 +2637,7 @@
 			"cpu": [
 				"arm64"
 			],
+			"dev": true,
 			"license": "MPL-2.0",
 			"optional": true,
 			"os": [
@@ -2640,6 +2658,7 @@
 			"cpu": [
 				"x64"
 			],
+			"dev": true,
 			"license": "MPL-2.0",
 			"optional": true,
 			"os": [
@@ -2660,6 +2679,7 @@
 			"cpu": [
 				"x64"
 			],
+			"dev": true,
 			"license": "MPL-2.0",
 			"optional": true,
 			"os": [
@@ -2680,6 +2700,7 @@
 			"cpu": [
 				"arm64"
 			],
+			"dev": true,
 			"license": "MPL-2.0",
 			"optional": true,
 			"os": [
@@ -2700,6 +2721,7 @@
 			"cpu": [
 				"x64"
 			],
+			"dev": true,
 			"license": "MPL-2.0",
 			"optional": true,
 			"os": [
@@ -2997,19 +3019,6 @@
 				"url": "https://github.com/fb55/nth-check?sponsor=1"
 			}
 		},
-		"node_modules/obug": {
-			"version": "2.2.1",
-			"resolved": "https://registry.npmjs.org/obug/-/obug-2.2.1.tgz",
-			"integrity": "sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==",
-			"funding": [
-				"https://github.com/sponsors/sxzz",
-				"https://opencollective.com/debug"
-			],
-			"license": "MIT",
-			"engines": {
-				"node": ">=12.20.0"
-			}
-		},
 		"node_modules/optionator": {
 			"version": "0.9.4",
 			"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
@@ -3110,17 +3119,14 @@
 			"license": "ISC"
 		},
 		"node_modules/picocrank": {
-			"version": "1.42.0",
-			"resolved": "https://registry.npmjs.org/picocrank/-/picocrank-1.42.0.tgz",
-			"integrity": "sha512-JSAXRaa0mBuOkh4mGfBDmkvU9uZPHPhsg799rPySJZ689rbMmpCdBYaLgHadmDKbS2XW2vG2F9n5uIs5Sv30Eg==",
+			"version": "1.42.1",
+			"resolved": "https://registry.npmjs.org/picocrank/-/picocrank-1.42.1.tgz",
+			"integrity": "sha512-u2NQa4UaEZ35bADmlzPa7AkQfUE4wHZAjN37oJk0dABWnLjLza616ki1PU12LQgNVvZ2uPaNykkxfUV5CGHHpw==",
 			"license": "ISC",
 			"dependencies": {
 				"@hugeicons/core-free-icons": "^4.4.0",
 				"@hugeicons/vue": "^1.0.8",
-				"@vitejs/plugin-vue": "^6.0.10",
 				"femtocrank": "^2.7.2",
-				"unplugin-vue-components": "^32.1.0",
-				"vite": "^8.3.8",
 				"vue": "^3.5.45",
 				"vue-router": "^5.5.0"
 			}
@@ -3306,6 +3312,7 @@
 			"version": "1.2.19",
 			"resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.19.tgz",
 			"integrity": "sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA==",
+			"devOptional": true,
 			"license": "MIT",
 			"dependencies": {
 				"@oxc-project/types": "=0.156.0",
@@ -3550,6 +3557,7 @@
 			"version": "2.9.1",
 			"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz",
 			"integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==",
+			"dev": true,
 			"license": "0BSD",
 			"optional": true
 		},
@@ -3686,38 +3694,6 @@
 				"url": "https://github.com/sponsors/sxzz"
 			}
 		},
-		"node_modules/unplugin-vue-components": {
-			"version": "32.1.0",
-			"resolved": "https://registry.npmjs.org/unplugin-vue-components/-/unplugin-vue-components-32.1.0.tgz",
-			"integrity": "sha512-YiUkSxuRjab18XFOrX5VsIxXzccrfmHVGsGeJgSgklb829DQmCy9E4vvDUE4tuvZZdxyFJZX0Oc4TPnnxiiMyg==",
-			"license": "MIT",
-			"dependencies": {
-				"chokidar": "^5.0.0",
-				"local-pkg": "^1.2.0",
-				"magic-string": "^0.30.21",
-				"mlly": "^1.8.2",
-				"obug": "^2.1.1",
-				"picomatch": "^4.0.4",
-				"tinyglobby": "^0.2.16",
-				"unplugin": "^3.0.0",
-				"unplugin-utils": "^0.3.1"
-			},
-			"engines": {
-				"node": ">=20.19.0"
-			},
-			"funding": {
-				"url": "https://github.com/sponsors/antfu"
-			},
-			"peerDependencies": {
-				"@nuxt/kit": "^3.2.2 || ^4.0.0",
-				"vue": "^3.0.0"
-			},
-			"peerDependenciesMeta": {
-				"@nuxt/kit": {
-					"optional": true
-				}
-			}
-		},
 		"node_modules/uri-js": {
 			"version": "4.4.1",
 			"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
@@ -3739,6 +3715,7 @@
 			"version": "8.3.8",
 			"resolved": "https://registry.npmjs.org/vite/-/vite-8.3.8.tgz",
 			"integrity": "sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA==",
+			"devOptional": true,
 			"license": "MIT",
 			"dependencies": {
 				"lightningcss": "^1.33.0",

+ 1 - 1
frontend/package.json

@@ -31,7 +31,7 @@
 		"@xterm/addon-web-links": "^0.12.0",
 		"@xterm/xterm": "^6.0.0",
 		"iconify-icon": "^3.0.5",
-		"picocrank": "^1.42.0",
+		"picocrank": "^1.42.1",
 		"vue": "^3.5.46",
 		"vue-i18n": "^11.4.23",
 		"vue-router": "^5.5.1"

+ 7 - 1
var/sbom/generate.sh

@@ -30,7 +30,13 @@ trap 'rm -rf "${STAGE}"' EXIT
 
 mkdir -p "${STAGE}/bin" "${STAGE}/webui"
 cp "${BINARY}" "${STAGE}/bin/OliveTin"
-cp "${REPO_ROOT}/frontend/package.json" "${REPO_ROOT}/frontend/package-lock.json" "${STAGE}/webui/"
+cp "${REPO_ROOT}/frontend/package.json" "${STAGE}/webui/"
+
+# npm marks a package devOptional when production code reaches it only as an
+# optional peer, for example vite through vue-router. The webui is a bundle, so
+# nothing reached that way ships; mark it dev so syft leaves it out.
+jq '.packages |= map_values(if .devOptional == true then .dev = true else . end)' \
+  "${REPO_ROOT}/frontend/package-lock.json" > "${STAGE}/webui/package-lock.json"
 
 SYFT_JAVASCRIPT_INCLUDE_DEV_DEPENDENCIES=false syft scan "dir:${STAGE}" \
   --source-name OliveTin \