@rightkit/ci 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/manifest.mjs +14 -0
- package/package.json +1 -1
package/manifest.mjs
CHANGED
|
@@ -2207,6 +2207,20 @@ const CLASS_A_TOOL_STEPS = Object.freeze([
|
|
|
2207
2207
|
" mkdir -p \"$RUNNER_TEMP/actionlint-bin\"",
|
|
2208
2208
|
" case \"$asset\" in *.zip) unzip -o -q \"$archive\" actionlint.exe -d \"$RUNNER_TEMP/actionlint-bin\" ;; *) tar -xzf \"$archive\" -C \"$RUNNER_TEMP/actionlint-bin\" actionlint ;; esac",
|
|
2209
2209
|
" echo \"$RUNNER_TEMP/actionlint-bin\" >> \"$GITHUB_PATH\"",
|
|
2210
|
+
// The gate runs a scan tool only from an enrolment under its data root, never from PATH (scan-tool-enrolment.mjs); a gate without
|
|
2211
|
+
// enrolment has no such module and needs no step (rightkit#1865).
|
|
2212
|
+
" - name: Enrol the class A scan tools with the gate",
|
|
2213
|
+
" shell: bash",
|
|
2214
|
+
" run: |",
|
|
2215
|
+
" set -euo pipefail",
|
|
2216
|
+
" rk=node_modules/@rightkit/release",
|
|
2217
|
+
" [ -f \"$rk/scan-tool-enrolment.mjs\" ] || exit 0",
|
|
2218
|
+
" root=\"$(node --input-type=module -e \"import { resolveManagedRoots } from './$rk/managed-roots.mjs'; console.log(resolveManagedRoots().gateRoot)\")\"",
|
|
2219
|
+
" for spec in cargo-deny@0.20.2 cargo-audit@0.22.2 shellcheck@0.11.0 actionlint@1.7.12; do",
|
|
2220
|
+
" tool=\"${spec%@*}\"; bin=\"$(command -v \"$tool\")\"",
|
|
2221
|
+
" sum=\"$( (sha256sum \"$bin\" 2>/dev/null || shasum -a 256 \"$bin\") | cut -d' ' -f1)\"",
|
|
2222
|
+
" node \"$rk/scan-tool-enrolment.mjs\" enroll --data-root \"$root\" --tool \"$tool\" --path \"$bin\" --sha256 \"$sum\" --version \"${spec#*@}\"",
|
|
2223
|
+
" done",
|
|
2210
2224
|
]);
|
|
2211
2225
|
|
|
2212
2226
|
export const CHECK_JOB_LANES = Object.freeze(["ci", "qualification", "package-smoke", "release-candidate", "swift-check", "publish-npm"]);
|
package/package.json
CHANGED