chore(deps-dev): bump mypy from 1.18.2 to 1.19.0 #120
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: supply-chain | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| schedule: | |
| - cron: "23 4 * * 1" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: supply-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| sbom: | |
| name: Generate SBOM (CycloneDX) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: anchore/sbom-action@v0 | |
| with: | |
| format: cyclonedx-json | |
| output-file: sbom.cdx.json | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: sbom-cyclonedx | |
| path: sbom.cdx.json | |
| vuln-gate: | |
| # Ejecuta en PR no-draft, pero NUNCA falla el job; sube SARIF para Code Scanning | |
| if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }} | |
| name: Vulnerability scan (PR gate, non-blocking) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: aquasecurity/[email protected] | |
| with: | |
| scan-type: fs | |
| format: sarif | |
| output: trivy.sarif | |
| ignore-unfixed: true | |
| severity: CRITICAL | |
| exit-code: "0" # no bloquear PR; findings quedan en Code Scanning | |
| - uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: trivy.sarif | |
| - name: Summary | |
| run: | | |
| echo "Vulnerability scan uploaded as SARIF (non-blocking)" >> "$GITHUB_STEP_SUMMARY" |