Skip to content

Commit

Permalink
chore: fix deps audit (#27620) (#27673)
Browse files Browse the repository at this point in the history
This is a cherry-pick of #27620 for v12.5.0. This PR resolves a security
advisory by updating the `@sentry/browser` package.

Original description:

<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

Resolve the security advisory causing the audit CI job to fail by
updating the `@sentry/browser` package.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27620?quickstart=1)

## **Related issues**

N/A

## **Manual testing steps**

N/A

## **Screenshots/Recordings**

N/A

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.

Co-authored-by: chloeYue <105063779+chloeYue@users.noreply.github.com>
Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 7, 2024
1 parent be0396d commit ff84f84
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 70 deletions.
5 changes: 3 additions & 2 deletions lavamoat/browserify/beta/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2946,7 +2946,7 @@
},
"@sentry/browser": {
"globals": {
"PerformanceObserver.supportedEntryTypes.includes": true,
"PerformanceObserver.supportedEntryTypes": true,
"Request": true,
"URL": true,
"XMLHttpRequest.prototype": true,
Expand Down Expand Up @@ -3043,7 +3043,8 @@
"innerWidth": true,
"location.href": true,
"location.origin": true,
"parent": true
"parent": true,
"setTimeout": true
},
"packages": {
"@sentry/browser>@sentry-internal/browser-utils": true,
Expand Down
5 changes: 3 additions & 2 deletions lavamoat/browserify/flask/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2946,7 +2946,7 @@
},
"@sentry/browser": {
"globals": {
"PerformanceObserver.supportedEntryTypes.includes": true,
"PerformanceObserver.supportedEntryTypes": true,
"Request": true,
"URL": true,
"XMLHttpRequest.prototype": true,
Expand Down Expand Up @@ -3043,7 +3043,8 @@
"innerWidth": true,
"location.href": true,
"location.origin": true,
"parent": true
"parent": true,
"setTimeout": true
},
"packages": {
"@sentry/browser>@sentry-internal/browser-utils": true,
Expand Down
5 changes: 3 additions & 2 deletions lavamoat/browserify/main/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2946,7 +2946,7 @@
},
"@sentry/browser": {
"globals": {
"PerformanceObserver.supportedEntryTypes.includes": true,
"PerformanceObserver.supportedEntryTypes": true,
"Request": true,
"URL": true,
"XMLHttpRequest.prototype": true,
Expand Down Expand Up @@ -3043,7 +3043,8 @@
"innerWidth": true,
"location.href": true,
"location.origin": true,
"parent": true
"parent": true,
"setTimeout": true
},
"packages": {
"@sentry/browser>@sentry-internal/browser-utils": true,
Expand Down
5 changes: 3 additions & 2 deletions lavamoat/browserify/mmi/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -3038,7 +3038,7 @@
},
"@sentry/browser": {
"globals": {
"PerformanceObserver.supportedEntryTypes.includes": true,
"PerformanceObserver.supportedEntryTypes": true,
"Request": true,
"URL": true,
"XMLHttpRequest.prototype": true,
Expand Down Expand Up @@ -3135,7 +3135,8 @@
"innerWidth": true,
"location.href": true,
"location.origin": true,
"parent": true
"parent": true,
"setTimeout": true
},
"packages": {
"@sentry/browser>@sentry-internal/browser-utils": true,
Expand Down
117 changes: 55 additions & 62 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7889,64 +7889,64 @@ __metadata:
languageName: node
linkType: hard

"@sentry-internal/browser-utils@npm:8.19.0":
version: 8.19.0
resolution: "@sentry-internal/browser-utils@npm:8.19.0"
"@sentry-internal/browser-utils@npm:8.33.1":
version: 8.33.1
resolution: "@sentry-internal/browser-utils@npm:8.33.1"
dependencies:
"@sentry/core": "npm:8.19.0"
"@sentry/types": "npm:8.19.0"
"@sentry/utils": "npm:8.19.0"
checksum: 10/d6df6cb6edc6b2ddb7362daee39770a51b255d343b3dcb80dc98f77dc43a7cc66f29076e14d1a0ac162a51a4f620b876493a04c23a530f57170009364b6464ea
"@sentry/core": "npm:8.33.1"
"@sentry/types": "npm:8.33.1"
"@sentry/utils": "npm:8.33.1"
checksum: 10/aed6ec58a2dea3613011c24c1e1f14899eaba721d4523ca7da281cbf70e1d48e5ab2bd50da17de76e8cc8052b983840d937e167ea980c6a07e4d32f0e374903c
languageName: node
linkType: hard

"@sentry-internal/feedback@npm:8.19.0":
version: 8.19.0
resolution: "@sentry-internal/feedback@npm:8.19.0"
"@sentry-internal/feedback@npm:8.33.1":
version: 8.33.1
resolution: "@sentry-internal/feedback@npm:8.33.1"
dependencies:
"@sentry/core": "npm:8.19.0"
"@sentry/types": "npm:8.19.0"
"@sentry/utils": "npm:8.19.0"
checksum: 10/e10cf1f63d49a41072aaa1b7b007241a273bd4bfa6d2c628e50d621c8cde836e6743bdefbf9ba7e96684b6dd18ad49e17841f4420fc33757e7c119ec88b4ac15
"@sentry/core": "npm:8.33.1"
"@sentry/types": "npm:8.33.1"
"@sentry/utils": "npm:8.33.1"
checksum: 10/2cb3f4c4b71f8cdf8bcab9251216b15e0caaae257bbce49fffcf053716fab60d61793898c221457e518b109e6319faf8190c2d0e57fcea8b91f28e5815f4e643
languageName: node
linkType: hard

"@sentry-internal/replay-canvas@npm:8.19.0":
version: 8.19.0
resolution: "@sentry-internal/replay-canvas@npm:8.19.0"
"@sentry-internal/replay-canvas@npm:8.33.1":
version: 8.33.1
resolution: "@sentry-internal/replay-canvas@npm:8.33.1"
dependencies:
"@sentry-internal/replay": "npm:8.19.0"
"@sentry/core": "npm:8.19.0"
"@sentry/types": "npm:8.19.0"
"@sentry/utils": "npm:8.19.0"
checksum: 10/1f379c141884b448c56fcd663b8acc0ff1c12d50a2b9db37f9552eb2bc8c99a970114f80e58c8c4fcd61f933f9a15f58dc6cbe6f4297bb574d6772be8f41c5bf
"@sentry-internal/replay": "npm:8.33.1"
"@sentry/core": "npm:8.33.1"
"@sentry/types": "npm:8.33.1"
"@sentry/utils": "npm:8.33.1"
checksum: 10/75432f627a73bad2e09ad2a7b7200c1ea4fe9d9e797458615850689dd7b017f38c876f4435ea548da9ae7653f55be90d58fc115897febacc53b69e6593867afb
languageName: node
linkType: hard

"@sentry-internal/replay@npm:8.19.0":
version: 8.19.0
resolution: "@sentry-internal/replay@npm:8.19.0"
"@sentry-internal/replay@npm:8.33.1":
version: 8.33.1
resolution: "@sentry-internal/replay@npm:8.33.1"
dependencies:
"@sentry-internal/browser-utils": "npm:8.19.0"
"@sentry/core": "npm:8.19.0"
"@sentry/types": "npm:8.19.0"
"@sentry/utils": "npm:8.19.0"
checksum: 10/dc9bef6997d1f40fb0402f52c9d14f72cf050ec140fda27e00057c59ddd1a6144e78e40aeb5e0223dd48651bf02f809db26cf6e866dd5c8ec5c6bbbf76c6f1aa
"@sentry-internal/browser-utils": "npm:8.33.1"
"@sentry/core": "npm:8.33.1"
"@sentry/types": "npm:8.33.1"
"@sentry/utils": "npm:8.33.1"
checksum: 10/05cdb361ccde5039c7353877a95eb15e4d630d5edbb874cd55ac190ee8256a1456e1c6cae37636df55bff10fcde6ff1232d8ca290467d43393bb18d9e4efe99f
languageName: node
linkType: hard

"@sentry/browser@npm:^8.19.0":
version: 8.19.0
resolution: "@sentry/browser@npm:8.19.0"
version: 8.33.1
resolution: "@sentry/browser@npm:8.33.1"
dependencies:
"@sentry-internal/browser-utils": "npm:8.19.0"
"@sentry-internal/feedback": "npm:8.19.0"
"@sentry-internal/replay": "npm:8.19.0"
"@sentry-internal/replay-canvas": "npm:8.19.0"
"@sentry/core": "npm:8.19.0"
"@sentry/types": "npm:8.19.0"
"@sentry/utils": "npm:8.19.0"
checksum: 10/2412e938454bd5cc505bbbe7092a17bf5fde4b222ecfedaf3d54fb963a6c875c78661921d8f6e998498c85a9a52e616db75fd706867f76d38bf3f95714775aa6
"@sentry-internal/browser-utils": "npm:8.33.1"
"@sentry-internal/feedback": "npm:8.33.1"
"@sentry-internal/replay": "npm:8.33.1"
"@sentry-internal/replay-canvas": "npm:8.33.1"
"@sentry/core": "npm:8.33.1"
"@sentry/types": "npm:8.33.1"
"@sentry/utils": "npm:8.33.1"
checksum: 10/085717b19c89184fad0c9e17dee679401ff87616678f952d91afff574ebcc56114845c216bbbd7b81c93d54c2a42b3db4232af1c707843424cdd6800a99030a5
languageName: node
linkType: hard

Expand All @@ -7965,36 +7965,29 @@ __metadata:
languageName: node
linkType: hard

"@sentry/core@npm:8.19.0":
version: 8.19.0
resolution: "@sentry/core@npm:8.19.0"
"@sentry/core@npm:8.33.1":
version: 8.33.1
resolution: "@sentry/core@npm:8.33.1"
dependencies:
"@sentry/types": "npm:8.19.0"
"@sentry/utils": "npm:8.19.0"
checksum: 10/708ef5abd81a9ab5288a4b258411e78591a7fec4854fc582c34f087fce62f5cd74e1086fbbc27a9f55da77d113dde137fbf9649f5b7df3d1a22886850702adbd
"@sentry/types": "npm:8.33.1"
"@sentry/utils": "npm:8.33.1"
checksum: 10/dbd781777f5dc003e21680919d37e308a64320776c54a5712163f72d4c0c4d5d25d7f07b83123e517c333fcdefb92ac5a0f15cb4dbbc79f3cc7309038cb0fcbb
languageName: node
linkType: hard

"@sentry/types@npm:8.19.0":
version: 8.19.0
resolution: "@sentry/types@npm:8.19.0"
checksum: 10/8812f7394c6c031197abc04d80e5b5b3693742dc065b877c535a9ceb538aabd60ee27fc2b13824e2b8fc264819868109bbd4de3642fd1c7bf30d304fb0c21aa9
"@sentry/types@npm:8.33.1, @sentry/types@npm:^8.19.0":
version: 8.33.1
resolution: "@sentry/types@npm:8.33.1"
checksum: 10/bcd7f80e84a23cb810fa5819dc85f45bd62d52b01b1f64a1b31297df21e9d1f4de8f7ea91835c5d6a7010d7dbfc8b09cd708d057d345a6ff685b7f12db41ae57
languageName: node
linkType: hard

"@sentry/types@npm:^8.19.0":
version: 8.20.0
resolution: "@sentry/types@npm:8.20.0"
checksum: 10/c7d7ed17975f0fc0b4bf5aece58084953c2a76e8f417923a476fe1fd42a2c9339c548d701edbc4b938c9252cf680d3eff4c6c2a986bc7ac62649aebf656c5b64
languageName: node
linkType: hard

"@sentry/utils@npm:8.19.0, @sentry/utils@npm:^8.19.0":
version: 8.19.0
resolution: "@sentry/utils@npm:8.19.0"
"@sentry/utils@npm:8.33.1, @sentry/utils@npm:^8.19.0":
version: 8.33.1
resolution: "@sentry/utils@npm:8.33.1"
dependencies:
"@sentry/types": "npm:8.19.0"
checksum: 10/abd507e5b37c7753534865f74a1a622fdbe2d71cfa61fd009703f4c9c90634fb6d26e3b2f8e09904631d4692e3735de451ed914c505c31700a6f5504a61e649e
"@sentry/types": "npm:8.33.1"
checksum: 10/79426deba11c043f0410b4b5d635367147d7e41bb90526168f180ae05598768348de39a82f89a92a4f0365f5ece5f62950ba6eab0b7300faefea7a9bb0889df3
languageName: node
linkType: hard

Expand Down

0 comments on commit ff84f84

Please sign in to comment.