Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PyQt5 import error and update file path #86

Open
wants to merge 2 commits into
base: Your-Momma-Beeotch
Choose a base branch
from

Conversation

ProjectZeroDays
Copy link
Owner

@ProjectZeroDays ProjectZeroDays commented Jan 21, 2025

Add PyQt5 module to the application and update file paths.

  • requirements.txt

    • Add PyQt5 to the list of dependencies.
  • Dockerfile

    • Add PyQt5 to the pip install command.
  • infra/Dockerfile

    • Add PyQt5 to the pip install command.
    • Update the CMD to python src/frontend/archive_gui.py.
  • infra/docker-compose.yml

    • Update the command to python frontend/archive_gui.py.

For more details, open the Copilot Workspace session.

Add PyQt5 module to the application and update file paths.

* **requirements.txt**
  - Add `PyQt5` to the list of dependencies.

* **Dockerfile**
  - Add `PyQt5` to the `pip install` command.

* **infra/Dockerfile**
  - Add `PyQt5` to the `pip install` command.
  - Update the `CMD` to `python src/frontend/archive_gui.py`.

* **infra/docker-compose.yml**
  - Update the `command` to `python frontend/archive_gui.py`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ProjectZeroDays/Project-Red-Sword?shareId=XXXX-XXXX-XXXX-XXXX).
…anisms to `app_security/app_vulnerability_scanner.py`

* **Logging**: Add comprehensive logging for all exceptions in the `scan_application` function.
* **Sensitive Information Handling**: Implement sensitive information handling using environment variables.
* **Self-Correction Mechanisms**: Add self-correction mechanisms for database connection errors.

Update `code_analysis_report.txt` with a summary of changes made to `app_security/app_vulnerability_scanner.py`

Add automated testing for `app_security/app_vulnerability_scanner.py` in `.github/workflows/python-app.yml`

Add approval workflow for code changes in `.github/workflows/approval.yml`

Add deployment workflow for code changes in `.github/workflows/deployment.yml`
Comment on lines +9 to +19
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Request approval
uses: hmarr/auto-approve-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
reviewers: '["reviewer1", "reviewer2"]'

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
uses: actions/checkout@v2

- name: Request approval
uses: hmarr/auto-approve-action@v2

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Approval Workflow' step
Uses Step
uses 'hmarr/auto-approve-action' with ref 'v2', not a pinned commit hash
Comment on lines +10 to +33
runs-on: ubuntu-latest

steps:
- name: Checkout code
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: Run tests
run: |
pytest

- name: Deploy to server
run: |
echo "Deploying to server..."
# Add your deployment commands here

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
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