Add Huggingface deployment automation#88
Merged
ProjectZeroDays merged 2 commits intoYour-Momma-Beeotchfrom Jan 22, 2025
Merged
Conversation
Add automated Huggingface deployment script and GitHub Actions workflow. * **New Script**: Add `scripts/deploy_huggingface.sh` to authenticate with Huggingface, upload model or dataset, and complete deployment steps. * **GitHub Actions Workflow**: Add `.github/workflows/deploy_huggingface.yml` to trigger on push to main branch, set up environment, install dependencies, and run the deployment script. * **Testing**: Update `infra/test_deployment.sh` to include a test for Huggingface deployment. * **Documentation**: Update `README.md` to include steps for Huggingface deployment automation. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ProjectZeroDays/Project-Red-Sword?shareId=XXXX-XXXX-XXXX-XXXX).
Comment on lines
+10
to
+30
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v2 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: '3.x' | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -r requirements.txt | ||
|
|
||
| - name: Deploy to Huggingface | ||
| env: | ||
| HUGGINGFACE_API_KEY: ${{ secrets.HUGGINGFACE_API_KEY }} | ||
| run: | | ||
| bash scripts/deploy_huggingface.sh |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
…neering module * Add `email_spoofing_attack` and `sms_spoofing_attack` functions to `AdvancedSocialEngineering` class in `modules/advanced_social_engineering.py` * Update `execute_attack` method to handle new attack types * Update `render` method to include new attack types * Add `email_spoofing` and `sms_spoofing` functions to `chatbot/app.py` to integrate new techniques * Add error handling for new functions in `chatbot/app.py`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add automated Huggingface deployment script and GitHub Actions workflow.
scripts/deploy_huggingface.shto authenticate with Huggingface, upload model or dataset, and complete deployment steps..github/workflows/deploy_huggingface.ymlto trigger on push to main branch, set up environment, install dependencies, and run the deployment script.infra/test_deployment.shto include a test for Huggingface deployment.README.mdto include steps for Huggingface deployment automation.For more details, open the Copilot Workspace session.