diff options
| author | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-06-10 13:27:43 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-06-10 13:27:43 +0900 |
| commit | 0443c8c9972cbe792716cca193f7ad1ae64c0eda (patch) | |
| tree | 1a337aa33bb0fa1bd3bc209c87302ed799a6dbdb /official-site/list-events.sh | |
| parent | 4093468dc7117a2d796b9a18829d0058f742c334 (diff) | |
Remove hardcoded credentials: use env vars for AppSync/S3
All secrets (APP_SYNC_ENDPOINT, APP_SYNC_API_KEY, S3_BUCKET) moved to .env.
Scripts now fail-fast with :? if env vars are not set.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'official-site/list-events.sh')
| -rwxr-xr-x | official-site/list-events.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/official-site/list-events.sh b/official-site/list-events.sh index 0093875..d56aabf 100755 --- a/official-site/list-events.sh +++ b/official-site/list-events.sh @@ -5,8 +5,8 @@ REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)" [ -f "$REPO_ROOT/.env" ] && set -a && source "$REPO_ROOT/.env" && set +a AWS_CLI="${AWS_CLI:-/tmp/awscli/aws/dist/aws}" -ENDPOINT="https://APP_SYNC_ENDPOINT_REDACTED/graphql" -API_KEY="${APP_SYNC_API_KEY:-APP_SYNC_API_KEY_REDACTED}" +ENDPOINT="${APP_SYNC_ENDPOINT:?APP_SYNC_ENDPOINT not set}" +API_KEY="${APP_SYNC_API_KEY:?APP_SYNC_API_KEY not set}" QUERY='{ listEvents(limit: 200) { items { id type date title venueName published shortTitle ticketFee key } } }' |
