Commit 6577709
authored
docs: strengthen Python SDK security contribution guidance (openai#3639)
- [x] I understand that this repository is auto-generated and my pull
request may not be merged
## Changes being requested
- Add focused Python SDK security requirements for coding agents and
contributors: safe fake fixtures, credential and log redaction,
direct/transitive dependency and lockfile review, reviewed GitHub Action
pins, least-privilege CI, and protected PyPI Trusted Publishing.
- Require SDK CODEOWNER review and relevant synchronous/asynchronous
regression tests for authentication, X.509, webhook, network, file,
serialization, dependency, and release-sensitive changes.
- Explicitly direct vulnerability reports to the existing private
coordinated-disclosure process instead of public issues, discussions, or
pull requests.
## Verification
- `git diff --check`
- CommonMark parsing, local-link validation, security-policy coverage
assertions, and credential-like-literal checks for all three changed
Markdown files.
- `python scripts/check-python-version-policy.py` — passed.
- `python -m pytest -o addopts= -p no:cacheprovider -k 'not aiohttp'
tests/test_utils/test_logging.py tests/test_auth.py
tests/api_resources/test_webhooks.py` — 72 passed; 13 optional `aiohttp`
cases were deselected because that extra is absent from the existing
environment.
## Additional context & links
Documentation only: no generated SDK source, GitHub workflows,
repository settings, credentials, or release controls were changed.1 parent 3e8301c commit 6577709
3 files changed
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
10 | 39 | | |
11 | 40 | | |
12 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
46 | 72 | | |
47 | 73 | | |
48 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| |||
0 commit comments