feat: add NS1 (IBM) backend + supports_private_svcb_keys refactor (v0.16.0) #189
Workflow file for this run
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| # Run weekly on Mondays at 08:00 UTC | |
| - cron: "0 8 * * 1" | |
| permissions: | |
| contents: read | |
| jobs: | |
| bandit: | |
| name: SAST (Bandit) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install Bandit | |
| run: pip install bandit[toml] | |
| - name: Run Bandit | |
| run: bandit -r src/dns_aid -c pyproject.toml -f json -o bandit-report.json | |
| - name: Display results | |
| if: always() | |
| run: bandit -r src/dns_aid -c pyproject.toml | |
| - name: Upload Bandit report | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: bandit-report | |
| path: bandit-report.json | |
| sbom: | |
| name: SBOM Generation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - 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 ".[dev,cli,mcp,route53]" | |
| pip install cyclonedx-bom | |
| - name: Generate SBOM | |
| run: cyclonedx-py environment -o sbom.json --output-format json | |
| - name: Upload SBOM | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: sbom | |
| path: sbom.json | |
| dependency-audit: | |
| name: Dependency Audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - 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 ".[dev,cli,mcp,route53]" | |
| pip install pip-audit | |
| - name: Run pip-audit | |
| # Enable --strict after first PyPI publish (dns-aid not yet on PyPI) | |
| run: pip-audit |