Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
340c756
Requests::VERSION: move to top of the class
jrfnl Dec 12, 2025
4247ecb
PHPUnit: add clover code coverage config to config file
jrfnl Jan 21, 2025
f2dfa57
GH Actions/website: update PHP version used by phpDocumentor
jrfnl Nov 21, 2025
0b7a93b
GH Actions: Bump the action-runners group with 2 updates
dependabot[bot] Dec 15, 2025
c8bafc7
GH Actions: Bump actions/upload-artifact from 5.0.0 to 6.0.0
dependabot[bot] Dec 15, 2025
2bf9f5e
GH Actions: Bump actions/cache from 4.3.0 to 5.0.1
dependabot[bot] Dec 15, 2025
d1bacd8
GH Actions: Bump peter-evans/create-pull-request from 7.0.11 to 8.0.0
dependabot[bot] Dec 15, 2025
dba826e
GH Actions: Bump actions/download-artifact from 6.0.0 to 7.0.0
dependabot[bot] Dec 15, 2025
9ec339d
GH Actions: Bump ruby/setup-ruby in the action-runners group
dependabot[bot] Dec 22, 2025
8542f09
GH Actions: Bump ruby/setup-ruby in the action-runners group
dependabot[bot] Dec 29, 2025
4afd6cf
GH Actions: Bump ruby/setup-ruby in the action-runners group
dependabot[bot] Jan 5, 2026
289c724
GH Actions: Bump ruby/setup-ruby in the action-runners group
dependabot[bot] Jan 12, 2026
c3d5bcf
GH Actions: Bump the action-runners group with 2 updates
dependabot[bot] Jan 19, 2026
6d310d0
GH Actions: Bump the action-runners group across 1 directory with 5 u…
dependabot[bot] Feb 2, 2026
4ac65ab
GH Actions: Bump the action-runners group with 2 updates
dependabot[bot] Mar 10, 2026
94c7b2e
GH Actions: Bump actions/upload-artifact from 6.0.0 to 7.0.0
dependabot[bot] Mar 10, 2026
1cb7f6d
GH Actions: Bump actions/download-artifact from 7.0.0 to 8.0.0
dependabot[bot] Mar 10, 2026
1630520
GH Actions: Bump ramsey/composer-install from 3.2.0 to 4.0.0
dependabot[bot] Mar 20, 2026
62f7ad1
:lock_with_ink_pen: Update certificate bundle
github-actions[bot] Mar 21, 2026
1af2c64
GH Actions: Bump the action-runners group with 5 updates
dependabot[bot] Mar 21, 2026
53eab5f
Changelog for release 2.0.18
jrfnl Mar 21, 2026
250cced
GH Actions: Bump ruby/setup-ruby in the action-runners group
dependabot[bot] Apr 5, 2026
39116af
GH Actions: Bump codecov/codecov-action from 5.5.3 to 6.0.0
dependabot[bot] Apr 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

Expand All @@ -44,12 +44,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Install PHP
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
with:
php-version: '7.4'
coverage: none
Expand All @@ -58,7 +58,7 @@ jobs:
# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
- name: Install Composer dependencies
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # 4.0.0

# Check the code-style consistency of the PHP files.
- name: Check PHP code style
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Install PHP
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
with:
php-version: ${{ matrix.php }}
ini-values: error_reporting=-1, display_errors=On, display_startup_errors=On, log_errors_max_len=0
Expand All @@ -42,7 +42,7 @@ jobs:
# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
- name: Install Composer dependencies
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # 4.0.0
with:
# For PHP "nightly", we need to install with ignore platform reqs as not all dependencies may allow it yet.
composer-options: ${{ matrix.php == '8.6' && '--ignore-platform-req=php+' || '' }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/quicktest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Install PHP
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
with:
php-version: ${{ matrix.php }}
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On, display_startup_errors=On, log_errors_max_len=0
Expand All @@ -50,10 +50,10 @@ jobs:
# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
- name: Install Composer dependencies - normal
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # 4.0.0

- name: Setup Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.14'

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reusable-update-cacert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
fi

- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Restore etags cache for certificate files
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: certificates/etag-*.txt
key: curl-etag-${{ hashFiles('certificates/cacert.pem') }}-${{ hashFiles('certificates/cacert.pem.sha256') }}
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
run: echo "DATE=$(/bin/date -u "+%F")" >> "$GITHUB_OUTPUT"

- name: Create pull request
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7.0.11
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
with:
base: ${{ steps.branches.outputs.BASE }}
branch: ${{ steps.branches.outputs.PR_BRANCH }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Install PHP
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
with:
php-version: ${{ matrix.php }}
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On, display_startup_errors=On, log_errors_max_len=0
Expand All @@ -62,7 +62,7 @@ jobs:
# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
- name: Install Composer dependencies
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # 4.0.0
with:
# For PHP "nightly", we need to install with ignore platform reqs as not all dependencies may allow it yet.
composer-options: ${{ matrix.php == '8.6' && '--ignore-platform-req=php+' || '' }}
Expand All @@ -73,7 +73,7 @@ jobs:
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Setup Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.14'

Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:

- name: Run the unit tests with code coverage
if: ${{ matrix.coverage == true }}
run: vendor/bin/phpunit --coverage-clover clover.xml
run: vendor/bin/phpunit

- name: Stop proxy server
continue-on-error: true
Expand All @@ -132,9 +132,9 @@ jobs:

- name: Send coverage report to Codecov
if: ${{ success() && matrix.coverage == true && github.event.repository.fork == false }}
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
token: "${{ secrets.CODECOV_TOKEN }}"
files: ./clover.xml
files: ./tests/coverage/clover.xml
fail_ci_if_error: true
verbose: true
16 changes: 8 additions & 8 deletions .github/workflows/update-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ jobs:
fi

- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ steps.base_branch.outputs.BRANCH }}
persist-credentials: false

- name: Install PHP
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
with:
php-version: '8.1'
php-version: '8.4'
ini-values: display_errors=On, display_startup_errors=On
coverage: none
tools: phpdoc
Expand All @@ -74,7 +74,7 @@ jobs:
# Retention is normally 90 days, but this artifact is only for review
# and use in the next step, so no need to keep it for more than a day.
- name: Upload the artifacts folder
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: ${{ success() }}
with:
name: website-updates
Expand Down Expand Up @@ -112,13 +112,13 @@ jobs:
fi

- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: gh-pages
persist-credentials: false

- name: Download the prepared artifacts
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: website-updates
path: artifacts
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:

- name: Create pull request
if: github.event_name != 'pull_request'
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7.0.11
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
with:
base: gh-pages
branch: feature/auto-ghpages-update-${{ steps.get_pr_info.outputs.REF }}
Expand All @@ -193,7 +193,7 @@ jobs:

# Test that the site builds correctly.
- name: Set up Ruby
uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0
uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64 # v1.299.0
with:
# Use the version as per https://pages.github.com/versions/.
ruby-version: 3.3.4
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Changelog
=========

2.0.18
------

### Overview of changes
- Update bundled certificates as of 2026-02-11. [#1039]
- General housekeeping.

[#1039]: https://github.com/WordPress/Requests/pull/1039

2.0.17
------

Expand Down
28 changes: 23 additions & 5 deletions certificates/cacert.pem
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
##
## Bundle of CA Root Certificates
##
## Certificate data from Mozilla as of: Tue Dec 2 04:12:02 2025 GMT
## Certificate data from Mozilla last updated on: Wed Feb 11 18:26:30 2026 GMT
##
## Find updated versions here: https://curl.se/docs/caextract.html
##
Expand All @@ -15,8 +15,8 @@
## an Apache+mod_ssl webserver for SSL client authentication.
## Just configure this file as the SSLCACertificateFile.
##
## Conversion done with mk-ca-bundle.pl version 1.30.
## SHA256: a903b3cd05231e39332515ef7ebe37e697262f39515a52015c23c62805b73cd0
## Conversion done with mk-ca-bundle.pl version 1.32.
## SHA256: 3b98d4e3ff57a326d9587c33633039c8c3a9cf0b55f7ca581d7598ff329eb1f3
##


Expand Down Expand Up @@ -3480,8 +3480,8 @@ SM49BAMDA2kAMGYCMQCpKjAd0MKfkFFRQD6VVCHNFmb3U2wIFjnQEnx/Yxvf4zgAOdktUyBFCxxg
ZzFDJe0CMQCSia7pXGKDYmH5LVerVrkR3SW+ak5KGoJr3M/TvEqzPNcum9v4KGm8ay3sMaE641c=
-----END CERTIFICATE-----

OISTE Server Root RSA G1
=========================
OISTE Server Root RSA G1
========================
-----BEGIN CERTIFICATE-----
MIIFgzCCA2ugAwIBAgIQVaXZZ5Qoxu0M+ifdWwFNGDANBgkqhkiG9w0BAQwFADBLMQswCQYDVQQG
EwJDSDEZMBcGA1UECgwQT0lTVEUgRm91bmRhd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KECgj3NXW+0UwHwYDVR0jBBgwFoAUWYQCYlpGePVd3I8KECgj3NXW+0Uw
CgYIKoZIzj0EAwQDgYsAMIGHAkIBLdqu9S54tma4n7Zwf2Z0z+yOfP7AAXmazlIC58PRDHpty7Ve
7hekm9sEdu4pKeiv+62sUvTXK9Z3hBC9xdIoaDQCQTV2WnXzkoYI9bIeCvZlC9p2x1L/Cx6AcCIw
wzPbGO2E14vs7dOoY4G1VnxHx1YwlGhza9IuqbnZLBwpvQy6uWWL
-----END CERTIFICATE-----
2 changes: 1 addition & 1 deletion certificates/cacert.pem.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f1407d974c5ed87d544bd931a278232e13925177e239fca370619aba63c757b4 cacert.pem
b6e66569cc3d438dd5abe514d0df50005d570bfc96c14dca8f768d020cb96171 cacert.pem
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

<logging>
<log type="coverage-html" target="tests/coverage" lowUpperBound="35" highLowerBound="90"/>
<log type="coverage-clover" target="tests/coverage/clover.xml"/>
</logging>

<filter>
Expand Down
14 changes: 7 additions & 7 deletions src/Requests.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
* @package Requests
*/
class Requests {
/**
* Current version of Requests
*
* @var string
*/
const VERSION = '2.0.18';

/**
* POST method
*
Expand Down Expand Up @@ -143,13 +150,6 @@ class Requests {
Fsockopen::class => Fsockopen::class,
];

/**
* Current version of Requests
*
* @var string
*/
const VERSION = '2.0.17';

/**
* Selected transport name
*
Expand Down
Loading