Skip to content

Wire in the upload-only YouTube token - #26

Merged
sgbaird merged 2 commits into
mainfrom
youtube-upload-token
Oct 15, 2026
Merged

sgbaird merged 2 commits into
mainfrom
youtube-upload-token

Conversation

@sgbaird

@sgbaird sgbaird commented Oct 15, 2026

Copy link
Copy Markdown
Member

Ports the YouTube upload credential from byu-vcl, as mentioned in #16.

  • Secret: YOUTUBE_UPLOAD_TOKEN_PICKLE_B64 is set on this repo (same value as byu-vcl and .claude/settings.local.json). It's for the BYU Vertical Cloud Lab channel, with scopes youtube.upload + youtube.readonly, so it can upload but can't delete or edit.
  • claude.yml: passes it through the job env block.
  • CLAUDE.md: adds a secret-inventory row and a "YouTube uploads" section: uploads are private by default, the run links the video back, it never uploads footage of people without their OK, and clips recorded on the arm Pi are copied back over SSH before upload.
  • youtube/: a trimmed copy of byu-vcl's yt_service.py (upload-only), plus requirements.txt, .gitignore and a README with the rotation steps. Minting stays in byu-vcl. byu-vcl's full-control token (youtube-admin environment, @claude-youtube) is deliberately not wired in.

Test after merge: @claude run python youtube/yt_service.py and report the channel and scopes should print BYU Vertical Cloud Lab (UCKC7WzMu6QEh7O55zZlT2lw). byu-vcl#236 is the upload test that was run there.

🤖 Generated with Claude Code

sgbaird and others added 2 commits October 15, 2026 10:06
YOUTUBE_UPLOAD_TOKEN_PICKLE_B64 (BYU Vertical Cloud Lab channel, scopes
youtube.upload + youtube.readonly) is now a repo secret, passed through
claude.yml's env block, and documented in CLAUDE.md. youtube/ is a trimmed
copy of byu-vcl's helper: upload-only, no full-control token, minting
stays in byu-vcl.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
# Conflicts:
#	.github/workflows/claude.yml
#	CLAUDE.md
@sgbaird
sgbaird merged commit 22d35aa into main Oct 15, 2026
@sgbaird
sgbaird deleted the youtube-upload-token branch October 15, 2026 17:24
@sgbaird

sgbaird commented Oct 15, 2026

Copy link
Copy Markdown
Member Author

@claude:low Test of the newly wired YouTube token: run pip install -r youtube/requirements.txt and then python youtube/yt_service.py (read-only, no upload), and reply with the channel name/ID and scopes it prints. Do not upload anything and do not commit anything.

@claude

claude Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Claude finished @sgbaird's task in 16s —— View job


The YouTube token works

  • pip install -r youtube/requirements.txt
  • python youtube/yt_service.py (read-only)

Output:

YOUTUBE_UPLOAD_TOKEN_PICKLE_B64 -> BYU Vertical Cloud Lab (UCKC7WzMu6QEh7O55zZlT2lw)
scopes: https://www.googleapis.com/auth/youtube.upload, https://www.googleapis.com/auth/youtube.readonly
  • Channel: BYU Vertical Cloud Lab (UCKC7WzMu6QEh7O55zZlT2lw), which matches what the PR expected.
  • Scopes: youtube.upload and youtube.readonly only.

Nothing was uploaded or committed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant