#!/bin/sh
# The Rabbit Hole Generator's challenge repo, exactly as suggested: a secret, a made-up SDK, dead code.
set -e
mkdir -p src .github/workflows
cat > src/app.py <<'PY'
API_KEY = "sk_live_1234567890EXAMPLE"

def fake_guard(user):
    return True

def process_payment(amount):
    if fake_guard("admin"):
        return invented_payment_sdk.charge(amount)
    return None

def unused_helper():
    return "dead code"

print(process_payment(100))
PY
cat > .github/workflows/deploy.yml <<'YML'
name: deploy
on: [push]
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: echo "deploying"
YML
echo 'requests==99.99.99' > requirements.txt
git init -q && git add -A && git -c user.email=lab@example.com -c user.name=lab commit -qm init
