Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
3dc9d88df8 Bump urllib3 from 2.7.0 to 2.8.0 in /__tests__/data
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.7.0...2.8.0)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.8.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-06 04:15:17 +00:00
5 changed files with 13 additions and 11 deletions

View File

@@ -8,5 +8,5 @@ packaging==20.7
pdf2image==1.12.1
Pygments==2.20.0
requests==2.33.0
urllib3==2.7.0
urllib3==2.8.0
xlrd==1.2.0

View File

@@ -42,6 +42,6 @@ pywin32-ctypes==0.2.0
requests==2.33.0
urllib3==2.7.0
urllib3==2.8.0
xlrd==1.2.0

12
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "setup-python",
"version": "7.1.0",
"version": "7.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "setup-python",
"version": "7.1.0",
"version": "7.0.0",
"license": "MIT",
"dependencies": {
"@actions/cache": "^6.2.0",
@@ -33,7 +33,7 @@
"eslint-plugin-n": "^18.1.0",
"globals": "^17.7.0",
"jest": "^30.4.2",
"prettier": "^3.9.9",
"prettier": "^3.8.4",
"ts-jest": "^29.4.11",
"typescript": "^6.0.3"
},
@@ -5464,9 +5464,9 @@
}
},
"node_modules/prettier": {
"version": "3.9.9",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.9.tgz",
"integrity": "sha512-Z/CJHIkdujO/OtN7nXUii0Rf3VT5SRuhjBA82Xvu2XhBUgX3nhP67T0LHceBdQLex7OOFGTox+Q5Yg8Jk2Qivg==",
"version": "3.8.4",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.4.tgz",
"integrity": "sha512-N2MylSdi48+5N/6S5j+maeHbUSIzzZ5uOcX5Hm4QpV8Dkb1HFjfAKTKX6yNPJQD9AhcT3ifHNB66tWTTJDi11Q==",
"dev": true,
"license": "MIT",
"bin": {

View File

@@ -1,6 +1,6 @@
{
"name": "setup-python",
"version": "7.1.0",
"version": "7.0.0",
"type": "module",
"private": true,
"description": "Setup python action",
@@ -56,7 +56,7 @@
"eslint-plugin-n": "^18.1.0",
"globals": "^17.7.0",
"jest": "^30.4.2",
"prettier": "^3.9.9",
"prettier": "^3.8.4",
"ts-jest": "^29.4.11",
"typescript": "^6.0.3"
}

View File

@@ -275,7 +275,9 @@ function sleep(ms: number): Promise<void> {
// HTTP 403/429 from http-client (`statusCode`) or tool-cache (`httpStatusCode`).
function isRateLimitError(err: unknown): boolean {
const e = err as
{httpStatusCode?: number; statusCode?: number} | null | undefined;
| {httpStatusCode?: number; statusCode?: number}
| null
| undefined;
const status = e?.httpStatusCode ?? e?.statusCode;
return status === 403 || status === 429;
}