-
Notifications
You must be signed in to change notification settings - Fork 6
chore(security): harden repo posture #35
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "pip" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| day: "monday" | ||
| open-pull-requests-limit: 5 | ||
| cooldown: | ||
| default-days: 5 | ||
| semver-major-days: 14 | ||
| semver-minor-days: 5 | ||
| semver-patch-days: 3 | ||
| groups: | ||
| production-deps: | ||
| dependency-type: "production" | ||
| update-types: ["minor", "patch"] | ||
| dev-deps: | ||
| dependency-type: "development" | ||
| update-types: ["minor", "patch"] | ||
|
|
||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| day: "monday" | ||
| cooldown: | ||
| default-days: 7 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: Security scan | ||
|
|
||
| on: | ||
| pull_request: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This workflow triggers on Useful? React with 👍 / 👎. |
||
| branches: [main] | ||
| push: | ||
| branches: [main] | ||
| schedule: | ||
| - cron: '23 6 * * *' | ||
|
|
||
| permissions: | ||
| actions: read | ||
| security-events: write | ||
| contents: read | ||
|
|
||
| jobs: | ||
| scan-scheduled: | ||
| if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }} | ||
| uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@3adb4b14a2b0623876d18d863a498b785fb3752d # v2.3.8 | ||
| with: | ||
| scan-args: |- | ||
| -r | ||
| ./ | ||
|
|
||
| scan-pr: | ||
| if: ${{ github.event_name == 'pull_request' }} | ||
| uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@3adb4b14a2b0623876d18d863a498b785fb3752d # v2.3.8 | ||
| with: | ||
| scan-args: |- | ||
| -r | ||
| ./ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Security Policy | ||
|
|
||
| ## Reporting a vulnerability | ||
|
|
||
| Please report security vulnerabilities through GitHub's private vulnerability reporting: | ||
| <https://github.com/supervaize/supervaizer/security/advisories/new> | ||
|
|
||
| Do not report security issues in public issues, discussions, or pull requests. | ||
|
|
||
| We will acknowledge receipt within 72 hours and provide an initial assessment within 7 days. | ||
|
|
||
| ## Supported versions | ||
|
|
||
| | Version | Supported | | ||
| |---------|-----------| | ||
| | 0.19.x | ✅ | | ||
| | < 0.19 | ❌ | | ||
|
|
||
| ## Supply-chain posture | ||
|
|
||
| This repository implements the following controls: | ||
|
|
||
| - Branch protection via GitHub rulesets on `main` (enforced on admins) | ||
| - Required CI status checks before merge | ||
| - Secret scanning with push protection | ||
| - Dependabot security updates with a cooldown window on new releases | ||
| - `uv sync --frozen` enforced in CI (lockfile cannot silently change) | ||
| - Trusted Publishing (OIDC) for PyPI releases — no long-lived publish tokens | ||
| - Required reviewer approval on the `pypi` environment before publish secrets are exposed | ||
| - Third-party GitHub Actions pinned to commit SHAs | ||
| - OSV-Scanner in CI (daily + on every PR) against the OSV.dev malicious package index | ||
|
|
||
| If you observe a deviation from this posture, please report it via the private channel above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Frozen sync breaks ci
🐞 Bug☼ ReliabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools