Document XDG/OpenBao credential custody (no secrets in chat) and add Playwright inventory export using storage-state for automated read access.
13 lines
429 B
Bash
Executable file
13 lines
429 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Authenticated Bubble inventory export (CSOC-WP-0001-T02).
|
|
# Uses storage-state only — never prints secrets.
|
|
set -euo pipefail
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
ROOT="$(cd "$DIR/.." && pwd)"
|
|
cd "$DIR"
|
|
if [[ ! -d node_modules/playwright ]]; then
|
|
echo "Installing playwright in scripts/ …"
|
|
npm install
|
|
npx playwright install chromium
|
|
fi
|
|
exec node ./export-bubble-inventory.mjs "$@"
|