smoke: scripts/hello for the custom scripts milestone (f7836bef)

Claude-Session: https://claude.ai/code/session_01N218bERyNeLhbLmDRDvbWF
This commit is contained in:
Claude (supervisor)
2026-10-15 09:41:34 +13:00
commit aff689644b
2 changed files with 15 additions and 0 deletions

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# csw-smoke-scripts
Smoke-test bundle for the custom scripts and workflows milestone (f7836bef). `scripts/hello` is the only script. Not production.

12
scripts/hello Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
# Smoke test for the custom scripts milestone (f7836bef). Not production.
# Proves: the platform fetched THIS script at a pinned sha, verified its
# bundle digest, installed it read-only and executed it. Prints no secrets.
set -eu
echo "csw-smoke: custom script executed"
echo "csw-smoke: cwd=$(pwd) uid=$(id -u)"
echo "csw-smoke: script=$0"
# count (never print) credential-looking environment variable NAMES
n=$(env | cut -d= -f1 | grep -ciE 'token|secret|password|api_key' || true)
echo "csw-smoke: credential-looking env var names visible to the script: ${n}"
echo "csw-smoke: OK"