Skip to content

Mask sensitive tokens, sanitize prompts, and add README documenting tech stack#1

Merged
edumgt merged 1 commit intomainfrom
codex/mask-sensitive-keys-and-remove-inappropriate-content
Feb 11, 2026
Merged

Mask sensitive tokens, sanitize prompts, and add README documenting tech stack#1
edumgt merged 1 commit intomainfrom
codex/mask-sensitive-keys-and-remove-inappropriate-content

Conversation

@edumgt
Copy link
Copy Markdown
Owner

@edumgt edumgt commented Feb 11, 2026

Motivation

  • Remove hardcoded Hugging Face tokens from scripts to avoid leaking secrets and encourage environment-variable usage.
  • Replace explicit/sexual prompt content with safe, non-explicit alternatives to sanitize repository content.
  • Provide a short README describing the project, its tech stack, and quick-start guidance for contributors.

Description

  • Replaced hardcoded HF_TOKEN assignments with HF_TOKEN = os.getenv("HF_TOKEN", "hf_***MASKED***") in 3.py, cpu.py, imgwork.py, and mp4make.py.
  • Sanitized explicit prompts in 3.py by replacing sexually explicit text with neutral, non-explicit prompts.
  • Added README.md describing repository purpose, core tech stack (diffusers, torch, opencv, Pillow, ffmpeg, ControlNet/OpenPose), file roles, runtime notes, and security/content-cleanup guidance.
  • Kept original script structure and behavior while updating prompt text and secret handling.

Testing

  • Ran syntax validation with python -m py_compile 3.py cpu.py imgwork.py mp4make.py, which completed without errors.
  • Scanned for remaining hardcoded token patterns with rg (searching for hf_..., API keys, and token assignments) and found no matches after the changes.
  • Verified the modified scripts load the HF_TOKEN variable via os.getenv (defaults to masked placeholder) so runtime behavior remains unchanged when a real token is provided.

Codex Task

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@edumgt edumgt merged commit d1ddb3b into main Feb 11, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant