Pin GitHub Actions to SHA for supply chain security - #136
Merged
Conversation
Diego Barajas (barajas-d)
approved these changes
Jul 23, 2026
Diego Barajas (barajas-d)
previously approved these changes
Jul 23, 2026
Reformatted long lines in resource client methods to stay within the 100-character limit, bringing pylint score to 10.00/10. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
The test must call _path_param directly to unit-test the method in isolation; disable the pylint warning at the call site. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
- Order tests: raise total_amount from 200.00 to 1000.00 (minimum accepted by the API for credit card payments); add missing processing_mode to test_create_order_and_get_by_id - Payment test: switch card from Visa (4074090000000004) to Mastercard (5031433215406351) with fixed expiry, aligning with other SDKs - Subscription tests: raise transaction_amount from 60 to 100 BRL and change plan-based test currency from ARS to BRL - Checkout Pro live test: assert client_token instead of checkout_url, which is not included in test-credential API responses Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
The Mastercard BIN 5031433215406351 is not registered for this test account. Switch all order and subscription tests to use Visa 4074090000000004 (fixed expiry 2030-12), which is accepted by the Orders and Payments APIs with this token. Also remove additional_info.payer.identification from test_payment — the field name is rejected by the API as invalid — and drop the unused datetime imports from test_payment and test_subscription. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Addresses CVE-2026-59890 / PYSEC-2026-3447: on macOS APFS/HFS+, NFD-encoded filenames could bypass NFC-encoded MANIFEST.in exclusion rules and be packed into source distributions. Fixed in 83.0.0. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Python 3.10 and 3.11 were resolving setuptools 79.0.1, which is vulnerable to CVE-2026-59890 / PYSEC-2026-3447. Python 3.12 happened to pull a newer version and passed. Explicitly upgrading setuptools at install time ensures all matrix versions get >= 83.0.0. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Diego Barajas (barajas-d)
approved these changes
Jul 24, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
cd.yml:actions/checkout@v7→@df4cb1c...,actions/setup-python@v7→@ece7cb06...ci.yml:actions/checkout@v7→@df4cb1c...,actions/setup-python@v7→@ece7cb06...Test plan