solfoundry-bounty-sync
Production-ready GitHub issue scraper + publisher for the SolFoundry bounty ingestion workflow.
Built for SolFoundry issue #840: Bounty T2: GitHub Issue Scraper for Foundry Bounties.
What it does
- polls configurable GitHub repositories for open bounty issues
- normalizes issues into a stable
BountyRecordschema - maps tiers from issue titles/labels (
T1,T2,T3) - publishes records to a SolFoundry API endpoint, or runs safely in dry-run mode
- supports GitHub
issueswebhooks with HMAC SHA-256 signature verification - stores sync state in SQLite for dedupe/idempotency
- exposes
/healthz,/sync, and/webhooks/github - ships with CLI, tests, and typed Pydantic models
Quick start
python -m venv .venv
. .venv/bin/activate
pip install -e '.[dev]'
cp .env.example .env
solfoundry-bounty-sync sync
solfoundry-bounty-sync serve --port 8080
Configuration
Environment variables use the SOLFOUNDRY_ prefix.
SOLFOUNDRY_GITHUB_TOKEN=github_pat_or_classic_token
SOLFOUNDRY_GITHUB_REPOS='["SolFoundry/solfoundry"]'
SOLFOUNDRY_GITHUB_LABELS_ANY='["bounty","T1","T2","T3"]'
SOLFOUNDRY_GITHUB_WEBHOOK_SECRET=change-me
SOLFOUNDRY_SOLFOUNDRY_API_URL=https://api.solfoundry.example
SOLFOUNDRY_SOLFOUNDRY_API_TOKEN=token
SOLFOUNDRY_DRY_RUN=true
SOLFOUNDRY_DATABASE_URL=sqlite:///./solfoundry_bounty_sync.db
Dry-run is enabled by default so the package can be verified without touching production.
Verification checklist
python -m pytest
python -m ruff check .
python -m build
Integration notes
The publisher expects POST {SOLFOUNDRY_SOLFOUNDRY_API_URL}/bounties with the normalized BountyRecord JSON. If SolFoundry's internal API route differs, only publisher.py needs a small adapter change; ingestion, mapping, dedupe, and webhook verification remain unchanged.
Metadata
Release files for solfoundry-bounty-sync 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| solfoundry_bounty_sync-0.1.0.tar.gz | 11.4 kB | Without provenance | Details for solfoundry_bounty_sync-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| solfoundry_bounty_sync-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for solfoundry_bounty_sync-0.1.0-py3-none-any.whl |
Total release size: 21.9 kB
Release files / solfoundry_bounty_sync-0.1.0.tar.gz
| Download URL | solfoundry_bounty_sync-0.1.0.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d2dd85345d94fab747dad133f6f0d89179ad69a338c9b2f08ec981806c55cd5
|
|
BLAKE2b-256 checksum How to use checksums |
c2c909aec51e37f080eb541ae2acb786cd9b1f82a4501d1fd7e582ba85489159
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / solfoundry_bounty_sync-0.1.0-py3-none-any.whl
| Download URL | solfoundry_bounty_sync-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b19e5e0a00ce49cd985fa640937e0ff1314a782fbd4da09ea98b5b54c056d93
|
|
BLAKE2b-256 checksum How to use checksums |
5f29705dbe6461dfdc6783bac92a0c8a0f9341744cf933a53315ddcf5422c504
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for solfoundry-bounty-sync 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.