smoke: scripts/hello for the custom scripts milestone (f7836bef)
Claude-Session: https://claude.ai/code/session_01N218bERyNeLhbLmDRDvbWF
This commit is contained in:
3
README.md
Normal file
3
README.md
Normal 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
12
scripts/hello
Executable 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"
|
||||||
Reference in New Issue
Block a user