Files
claude-hub/test/security/test-github-token.sh
Jonathan Flatt 4cdad828c4 Reorganize scripts into structured directory layout and consolidate functionality
This commit reorganizes all scripts in the repository into a more structured directory layout for better maintainability:
- Categorizes scripts by functionality (setup, build, aws, runtime, security, utils)
- Organizes test scripts into logical categories
- Consolidates redundant scripts with unified interfaces
- Adds backward compatibility wrappers
- Adds detailed SCRIPTS.md documentation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-21 00:19:07 +00:00

13 lines
405 B
Bash
Executable File

#!/bin/bash
# Test GitHub token
source .env
echo "Testing GitHub token..."
# Test with curl
curl -s -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/user | jq '.'
# Test with gh cli (in a container)
echo "Testing with gh CLI in container..."
docker run --rm -e GH_TOKEN="${GITHUB_TOKEN}" claude-code-runner:latest bash -c 'echo $GH_TOKEN | gh auth login --with-token && gh auth status'