[8.x] Upgrade axios 1.8.3 in buildkite (#215203) (#215297)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Upgrade axios 1.8.3 in buildkite
(#215203)](https://github.com/elastic/kibana/pull/215203)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Alex
Szabo","email":"alex.szabo@elastic.co"},"sourceCommit":{"committedDate":"2025-03-20T09:58:41Z","message":"Upgrade
axios 1.8.3 in buildkite (#215203)\n\n## Summary\nUpgrade `axios` to
1.8.3 in Kibana's `.buildkite` subproject; disallow\nabsolute URLs in
axios
clients.","sha":"d8f6bd694b5004547623f506b3a3497bb556c2a1","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v9.1.0"],"title":"Upgrade
axios 1.8.3 in
buildkite","number":215203,"url":"https://github.com/elastic/kibana/pull/215203","mergeCommit":{"message":"Upgrade
axios 1.8.3 in buildkite (#215203)\n\n## Summary\nUpgrade `axios` to
1.8.3 in Kibana's `.buildkite` subproject; disallow\nabsolute URLs in
axios
clients.","sha":"d8f6bd694b5004547623f506b3a3497bb556c2a1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215203","number":215203,"mergeCommit":{"message":"Upgrade
axios 1.8.3 in buildkite (#215203)\n\n## Summary\nUpgrade `axios` to
1.8.3 in Kibana's `.buildkite` subproject; disallow\nabsolute URLs in
axios clients.","sha":"d8f6bd694b5004547623f506b3a3497bb556c2a1"}}]}]
BACKPORT-->

Co-authored-by: Alex Szabo <alex.szabo@elastic.co>
This commit is contained in:
Kibana Machine 2025-03-20 12:54:38 +01:00 committed by GitHub
parent 5b0fba9a01
commit a1a872b8cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 8 deletions

View file

@ -9,7 +9,7 @@
"version": "1.0.0",
"dependencies": {
"@octokit/rest": "^18.10.0",
"axios": "^1.7.9",
"axios": "^1.8.3",
"globby": "^11.1.0",
"js-yaml": "^4.1.0",
"minimatch": "^5.0.1",
@ -474,9 +474,10 @@
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
},
"node_modules/axios": {
"version": "1.7.9",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz",
"integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==",
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.8.3.tgz",
"integrity": "sha512-iP4DebzoNlP/YN2dpwCgb8zoCmhtkajzS48JvwmkSkXvPI3DHc7m+XYL5tGnSlJtR6nImXZmdCuN5aP8dh1d8A==",
"license": "MIT",
"dependencies": {
"follow-redirects": "^1.15.6",
"form-data": "^4.0.0",
@ -2325,9 +2326,9 @@
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
},
"axios": {
"version": "1.7.9",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz",
"integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==",
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.8.3.tgz",
"integrity": "sha512-iP4DebzoNlP/YN2dpwCgb8zoCmhtkajzS48JvwmkSkXvPI3DHc7m+XYL5tGnSlJtR6nImXZmdCuN5aP8dh1d8A==",
"requires": {
"follow-redirects": "^1.15.6",
"form-data": "^4.0.0",

View file

@ -11,7 +11,7 @@
},
"dependencies": {
"@octokit/rest": "^18.10.0",
"axios": "^1.7.9",
"axios": "^1.8.3",
"globby": "^11.1.0",
"js-yaml": "^4.1.0",
"minimatch": "^5.0.1",

View file

@ -176,6 +176,7 @@ export class BuildkiteClient {
headers: {
Authorization: `Bearer ${BUILDKITE_TOKEN}`,
},
allowAbsoluteUrls: false,
});
this.exec = config.exec ?? execSync;

View file

@ -124,6 +124,7 @@ const projectRequest = axios.create({
headers: {
Authorization: `ApiKey ${process.env.PROJECT_API_KEY}`,
},
allowAbsoluteUrls: false,
});
purgeProjects().catch((e) => {