chore(deps): update registry.fedoraproject.org/fedora:45 docker digest to 8e17642 #358
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
| name: Security Scanning | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| # Run weekly on Mondays | |
| - cron: '0 0 * * 1' | |
| jobs: | |
| security-scan: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev]" | |
| pip install safety bandit | |
| - name: Run Safety check | |
| run: | | |
| safety check --json || safety check | |
| continue-on-error: true | |
| - name: Run Bandit security linter | |
| run: | | |
| bandit -r pulp_tool/ -f json -o bandit-report.json || bandit -r pulp_tool/ | |
| continue-on-error: true | |
| - name: Upload Bandit results | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: bandit-report | |
| path: bandit-report.json | |
| if-no-files-found: ignore |