Skip to content

Pin GitHub Actions to SHA for supply chain security - #136

Merged
luismeli10 (luismeli10) merged 7 commits into
masterfrom
hotfix/pin-github-actions-sha
Jul 24, 2026
Merged

Pin GitHub Actions to SHA for supply chain security#136
luismeli10 (luismeli10) merged 7 commits into
masterfrom
hotfix/pin-github-actions-sha

Conversation

@luismeli10

Copy link
Copy Markdown
Contributor

Summary

  • Pin all GitHub Actions to full SHA commit hashes to prevent supply chain attacks via mutable tags

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

  • CI passes on this PR

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>
luismeli10 (luismeli10) and others added 5 commits July 23, 2026 19:04
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>
@luismeli10
luismeli10 (luismeli10) merged commit c057315 into master Jul 24, 2026
3 checks passed
@luismeli10
luismeli10 (luismeli10) deleted the hotfix/pin-github-actions-sha branch July 24, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants