Skip to content

Commit 98b3639

Browse files
committed
Merge origin/main into stable-main-13.13.0
2 parents 10679a5 + 0756181 commit 98b3639

File tree

384 files changed

+26337
-29513
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

384 files changed

+26337
-29513
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# audit these changes on their own, and leave their analysis in a comment.
1414
# These codeowners will review this analysis, and review the policy changes in
1515
# further detail if warranted.
16-
lavamoat/ @MetaMask/extension-devs @MetaMask/policy-reviewers @MetaMask/supply-chain
16+
lavamoat/ @MetaMask/policy-reviewers
1717

1818
# The offscreen.ts script file that is included in the offscreen document html
1919
# file is responsible, at present, for loading the snaps execution environment
@@ -142,6 +142,7 @@ app/scripts/lib/transaction/util.*
142142
ui/pages/confirmations @MetaMask/confirmations
143143
ui/components/multichain/pages/send @MetaMask/confirmations
144144
ui/pages/confirmations/components/confirm/footer @MetaMask/confirmations @MetaMask/web3auth
145+
ui/pages/confirmations/components/confirm/info/shield-subscription-approve @MetaMask/confirmations @MetaMask/web3auth
145146
ui/pages/confirmations/hooks/alerts/useShieldCoverageAlert.test.ts @MetaMask/confirmations @MetaMask/web3auth
146147
ui/pages/confirmations/hooks/alerts/useShieldCoverageAlert.ts @MetaMask/confirmations @MetaMask/web3auth
147148
ui/pages/confirmations/hooks/alerts/transactions/ShieldCoverageAlertMessage.tsx @MetaMask/confirmations @MetaMask/web3auth

.github/scripts/check-template-and-add-labels.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,19 @@ async function userBelongsToMetaMaskOrg(
409409
// This function checks if the PR description has a changelog entry
410410
function hasChangelogEntry(body: string): boolean {
411411
// Remove HTML comments (including multiline)
412-
const uncommentedBody = body.replace(/<!--[\s\S]*?-->/g, "");
412+
let uncommentedBody = body;
413+
let prevBody;
414+
let iterationCount = 0;
415+
const MAX_ITERATIONS = 100;
416+
do {
417+
prevBody = uncommentedBody;
418+
uncommentedBody = uncommentedBody.replace(/<!--[\s\S]*?-->/g, "");
419+
iterationCount++;
420+
if (iterationCount >= MAX_ITERATIONS) {
421+
console.warn(`Reached maximum HTML comment removal iterations (${MAX_ITERATIONS}). Input may be malformed or malicious.`);
422+
break;
423+
}
424+
} while (uncommentedBody !== prevBody);
413425

414426
// Split body into lines
415427
const lines = uncommentedBody.split(/\r?\n/);

.github/workflows/create-release-pr.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,21 @@ jobs:
7676
create-release-pr:
7777
needs: [resolve-bases, resolve-previous-ref]
7878
name: Create Release Pull Request using Github Tools
79-
uses: MetaMask/github-tools/.github/workflows/create-release-pr.yml@6a04e4d0c8c25680a7543cfcd2e2fb7125b6759c
80-
with:
81-
platform: extension
82-
checkout-base-branch: ${{ needs.resolve-bases.outputs.checkout_base }}
83-
release-pr-base-branch: ${{ needs.resolve-bases.outputs.release_base }}
84-
semver-version: ${{ inputs.semver-version }}
85-
previous-version-ref: ${{ needs.resolve-previous-ref.outputs.previous_ref }}
86-
github-tools-version: 6a04e4d0c8c25680a7543cfcd2e2fb7125b6759c
87-
secrets:
88-
# This token needs write permissions to metamask-extension & read permissions to metamask-planning
89-
# If called from auto-create-release-pr use the PR_TOKEN passed in as an input, if called manually use github secret token values
90-
# (this is due to github limitations on fetching secrets from called workflows).
91-
github-token: ${{ github.event_name == 'workflow_dispatch' && secrets.PR_TOKEN || secrets.github-token }}
92-
google-application-creds-base64: ${{ github.event_name == 'workflow_dispatch' && secrets.GCP_RLS_SHEET_ACCOUNT_BASE64 || secrets.google-application-creds-base64 }}
79+
runs-on: ubuntu-latest
9380
permissions:
9481
contents: write
9582
pull-requests: write
83+
steps:
84+
- name: Create Release PR
85+
uses: MetaMask/github-tools/.github/actions/[email protected]
86+
with:
87+
platform: extension
88+
checkout-base-branch: ${{ needs.resolve-bases.outputs.checkout_base }}
89+
release-pr-base-branch: ${{ needs.resolve-bases.outputs.release_base }}
90+
semver-version: ${{ inputs.semver-version }}
91+
previous-version-ref: ${{ needs.resolve-previous-ref.outputs.previous_ref }}
92+
# This token needs write permissions to metamask-extension & read permissions to metamask-planning
93+
# If called from auto-create-release-pr use the PR_TOKEN passed in as an input, if called manually use github secret token values
94+
# (this is due to github limitations on fetching secrets from called workflows).
95+
github-token: ${{ github.event_name == 'workflow_dispatch' && secrets.PR_TOKEN || secrets.github-token }}
96+
google-application-creds-base64: ${{ github.event_name == 'workflow_dispatch' && secrets.GCP_RLS_SHEET_ACCOUNT_BASE64 || secrets.google-application-creds-base64 }}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Merge Stable Sync PR
2+
3+
on:
4+
# Trigger the workflow when a comment is created on an issue or pull request
5+
issue_comment:
6+
types: [created]
7+
8+
jobs:
9+
merge-pr:
10+
# Only run if the comment is on a PR and the comment body matches exactly "Merge my PR"
11+
if: >-
12+
github.event.issue.pull_request &&
13+
github.event.comment.body == 'Merge my PR' &&
14+
(
15+
github.event.comment.author_association == 'MEMBER' ||
16+
github.event.comment.author_association == 'OWNER'
17+
)
18+
uses: MetaMask/github-tools/.github/workflows/merge-approved-pr.yml@7c0ab4db1e9c1d5673fe7958e8959f1842edbebd
19+
with:
20+
pr-number: ${{ github.event.issue.number }}
21+
# Merge PRs from stable-main-X.Y.Z into main
22+
required-base-branch: 'main'
23+
head-branch-pattern: '^stable-main-[0-9]+\.[0-9]+\.[0-9]+$'
24+
secrets:
25+
github-token: ${{ secrets.METAMASK_EXTENSION_BRANCH_SYNC_TOKEN }}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Merge Version Bump PR
2+
3+
on:
4+
# Trigger the workflow when a comment is created on an issue or pull request
5+
issue_comment:
6+
types: [created]
7+
8+
jobs:
9+
merge-pr:
10+
# Only run if the comment is on a PR and the comment body matches exactly "Merge my PR"
11+
if: >-
12+
github.event.issue.pull_request &&
13+
github.event.comment.body == 'Merge my PR' &&
14+
(
15+
github.event.comment.author_association == 'MEMBER' ||
16+
github.event.comment.author_association == 'OWNER'
17+
)
18+
uses: MetaMask/github-tools/.github/workflows/merge-approved-pr.yml@7c0ab4db1e9c1d5673fe7958e8959f1842edbebd
19+
with:
20+
pr-number: ${{ github.event.issue.number }}
21+
# Merge PRs from version-bump/X.Y.Z into main
22+
required-base-branch: 'main'
23+
head-branch-pattern: '^version-bump/[0-9]+\.[0-9]+\.[0-9]+$'
24+
secrets:
25+
github-token: ${{ secrets.METAMASK_EXTENSION_BRANCH_SYNC_TOKEN }}

.github/workflows/run-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
RUN_ID: ${{ github.run_id }}
7575
PR_NUMBER: ${{ github.event.pull_request.number || '' }}
7676
TEST_SUITE_NAME: ${{ inputs.test-suite-name }}
77-
IS_SIDEPANEL: false
77+
IS_SIDEPANEL: true
7878
steps:
7979
- name: Checkout and setup environment
8080
uses: MetaMask/action-checkout-and-setup@v1

.github/workflows/update-release-changelog.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,17 @@ jobs:
4242
name: Update changelog
4343
needs: validate-branch
4444
if: needs.validate-branch.outputs.is-valid-release == 'true'
45+
runs-on: ubuntu-latest
4546
permissions:
4647
contents: write
4748
pull-requests: write
48-
uses: MetaMask/github-tools/.github/workflows/update-release-changelog.yml@36dc168896c1b496f35fc880ee8a3625b4b837ba
49-
with:
50-
release-branch: ${{ github.ref_name }}
51-
repository-url: ${{ github.server_url }}/${{ github.repository }}
52-
platform: extension
53-
github-tools-version: 36dc168896c1b496f35fc880ee8a3625b4b837ba
54-
previous-version-ref: null
55-
secrets:
56-
github-token: ${{ secrets.PR_TOKEN }}
49+
steps:
50+
- name: Update Release Changelog
51+
uses: MetaMask/github-tools/.github/actions/[email protected]
52+
with:
53+
release-branch: ${{ github.ref_name }}
54+
repository-url: ${{ github.server_url }}/${{ github.repository }}
55+
platform: extension
56+
previous-version-ref: 'null'
57+
github-tools-version: v1.1.2
58+
github-token: ${{ secrets.PR_TOKEN }}

.yarn/patches/@metamask-assets-controllers-npm-89.0.1-02fa7acd54.patch

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)