Skip to content

Commit fb846ba

Browse files
authored
Merge branch 'main' into get-started-connect
2 parents e0cb86c + 547f222 commit fb846ba

File tree

117 files changed

+2612
-1813
lines changed

Some content is hidden

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

117 files changed

+2612
-1813
lines changed

.github/dependabot.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: 2
2+
3+
updates:
4+
# 1) GitHub Actions
5+
- package-ecosystem: github-actions
6+
directory: / # GitHub scans .github/workflows from here
7+
schedule:
8+
interval: weekly
9+
day: monday
10+
time: "03:00"
11+
open-pull-requests-limit: 5
12+
labels: ["dependencies", "github-actions"]
13+
commit-message:
14+
prefix: "deps(actions)"
15+
include: "scope"
16+
groups:
17+
core-actions-minor-patch:
18+
update-types: ["minor", "patch"]
19+
patterns:
20+
- "actions/*"
21+
- "github/*"
22+
third-party-actions-minor-patch:
23+
update-types: ["minor", "patch"]
24+
patterns:
25+
- "*"
26+
exclude-patterns:
27+
- "actions/*"
28+
- "github/*"
29+
cooldown:
30+
default-days: 7

.github/workflows/build.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,26 @@ name: Build
33

44
on:
55
pull_request:
6-
branches:
7-
- main
6+
branches: [ main ]
7+
push:
8+
branches: [ main ]
9+
10+
# Cancel older runs on the same PR/branch
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions: {} # lock everything by default (least-privilege)
816

917
jobs:
1018
build:
1119
name: Build
1220
runs-on: ubuntu-latest
1321
permissions:
14-
contents: read
22+
contents: read # least-privilege for this job only
1523
steps:
16-
- uses: actions/checkout@v4
24+
- name: Checkout repository
25+
uses: actions/checkout@v6
1726

18-
- name: Build
27+
- name: Build docs
1928
uses: Consensys/github-actions/docs-build@main

.github/workflows/case.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ name: Check file name case
33

44
on:
55
pull_request:
6-
branches:
7-
- main
8-
paths:
9-
- 'docs/**'
6+
branches: [ main ]
7+
paths: ['docs/**']
108

119
jobs:
1210
case:
@@ -18,7 +16,8 @@ jobs:
1816
permissions:
1917
contents: read
2018
steps:
21-
- uses: actions/checkout@v4
19+
- name: Checkout repository
20+
uses: actions/checkout@v6
2221

2322
- name: Case check action
2423
uses: Consensys/docs-gha/docs-case-check@main

.github/workflows/links.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ name: Check for broken links
33

44
on:
55
pull_request:
6-
branches:
7-
- main
6+
branches: [ main ]
87

98
jobs:
10-
119
linkCheck:
1210
name: Link Checking
1311
runs-on: ubuntu-latest
1412
permissions:
1513
contents: read
1614
steps:
17-
- uses: actions/checkout@v4
15+
- name: Checkout repository
16+
uses: actions/checkout@v6
17+
1818
- name: LinkCheck
1919
uses: Consensys/github-actions/docs-link-check@main
2020
with:

.github/workflows/lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Check for lint errors
33

44
on:
55
pull_request:
6-
branches:
7-
- main
6+
branches: [ main ]
87

98
jobs:
109
lint:
@@ -13,10 +12,11 @@ jobs:
1312
permissions:
1413
contents: read
1514
steps:
16-
- uses: actions/checkout@v4
15+
- name: Checkout repository
16+
uses: actions/checkout@v6
1717

1818
- name: Lint code
19-
uses: ConsenSys/github-actions/docs-lint-all@main
19+
uses: Consensys/github-actions/docs-lint-all@main
2020

2121
- name: Lint markdown
22-
uses: ConsenSys/github-actions/docs-lint-markdown@main
22+
uses: Consensys/github-actions/docs-lint-markdown@main

.github/workflows/nightly.yml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,22 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
linkCheckMdx:
14-
name: Run link check on .mdx files
13+
linkCheck:
14+
name: Run link check
1515
runs-on: ubuntu-latest
1616
permissions:
1717
contents: read
1818
steps:
19-
- uses: actions/checkout@v4
20-
- name: LinkCheck mdx files
21-
uses: ConsenSys/github-actions/docs-link-check@main
22-
with:
23-
FILE_EXTENSION: mdx
24-
MODIFIED_FILES_ONLY: no
19+
- name: Checkout repository
20+
uses: actions/checkout@v6
2521

26-
linkCheckMd:
27-
needs: linkCheckMdx
28-
name: Run link check on .md files
29-
if: always()
30-
runs-on: ubuntu-latest
31-
permissions:
32-
contents: read
33-
steps:
34-
- uses: actions/checkout@v4
35-
- name: LinkCheck md files
22+
- name: LinkCheck
3623
uses: ConsenSys/github-actions/docs-link-check@main
3724
with:
38-
FILE_EXTENSION: md
39-
MODIFIED_FILES_ONLY: no
25+
CONFIG_FILE: .linkspector.yml
4026

4127
slackNotification:
42-
needs: [linkCheckMdx, linkCheckMd]
28+
needs: linkCheck
4329
if: ${{ failure() }}
4430
runs-on: ubuntu-latest
4531
permissions: {} # zero scopes
@@ -51,4 +37,4 @@ jobs:
5137
SLACK_COLOR: danger
5238
SLACK_TITLE: Linea docs nightly build - Failure
5339
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
54-
MSG_MINIMAL: true
40+
MSG_MINIMAL: true
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: MetaMask Security Code Scanner
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_call:
11+
secrets:
12+
SECURITY_SCAN_METRICS_TOKEN:
13+
required: false
14+
APPSEC_BOT_SLACK_WEBHOOK:
15+
required: false
16+
workflow_dispatch:
17+
18+
jobs:
19+
security-scan:
20+
uses: MetaMask/action-security-code-scanner/.github/workflows/security-scan.yml@v2
21+
permissions:
22+
actions: read
23+
contents: read
24+
security-events: write
25+
with:
26+
repo: ${{ github.repository }}
27+
scanner-ref: 'v2'
28+
paths-ignored: |
29+
node_modules
30+
**/node_modules/**
31+
**/__snapshots__/
32+
__snapshots_linux__
33+
**/__stories__/
34+
.storybook/
35+
**/*.test.ts
36+
**/*.test.tsx
37+
**/*.test.js
38+
**/*.test.jsx
39+
**/*.spec.ts
40+
**/*.spec.tsx
41+
**/*.spec.js
42+
**/*.spec.jsx
43+
**/test*/**
44+
**/e2e/**
45+
**/tests/**
46+
**/*.sol
47+
**/contracts/**
48+
languages-config: |
49+
[]
50+
secrets:
51+
project-metrics-token: ${{ secrets.SECURITY_SCAN_METRICS_TOKEN }}
52+
slack-webhook: ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }}

.github/workflows/spelling.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Check for spelling with vale
33

44
on:
55
pull_request:
6-
branches:
7-
- main
6+
branches: [ main ]
87

98
jobs:
109
vale:
@@ -13,10 +12,10 @@ jobs:
1312
permissions:
1413
contents: read
1514
steps:
16-
- uses: actions/checkout@v4
15+
- name: Checkout repository
16+
uses: actions/checkout@v6
1717

1818
- name: Vale
1919
uses: Consensys/github-actions/docs-spelling-check@main
2020
with:
2121
FILEPATHS: "docs"
22-
Lines changed: 46 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Update Node Size Data
23

34
on:
@@ -11,55 +12,56 @@ jobs:
1112
permissions:
1213
contents: write
1314
steps:
14-
- uses: actions/checkout@v4
15+
- name: Checkout repository
16+
uses: actions/checkout@v6
1517

16-
- name: Use Node.js
17-
uses: actions/setup-node@v4
18-
with:
19-
node-version: '20.9.0' # or whatever version you're using
18+
- name: Use Node.js
19+
uses: actions/setup-node@v6
20+
with:
21+
node-version: 22
2022

21-
- name: Install dependencies
22-
run: npm ci
23+
- name: Install dependencies
24+
run: npm ci
2325

24-
- name: Run update script
25-
env:
26-
LINEA_OBSERVABILITY_USER: ${{ secrets.LINEA_OBSERVABILITY_USER }}
27-
LINEA_OBSERVABILITY_PASS: ${{ secrets.LINEA_OBSERVABILITY_PASS }}
28-
run: node scripts/fetchNodeSize.js
26+
- name: Run update script
27+
env:
28+
LINEA_OBSERVABILITY_USER: ${{ secrets.LINEA_OBSERVABILITY_USER }}
29+
LINEA_OBSERVABILITY_PASS: ${{ secrets.LINEA_OBSERVABILITY_PASS }}
30+
run: node scripts/fetchNodeSize.js
2931

30-
- name: Check for existing PR
31-
id: check-pr
32-
run: |
33-
PR_BRANCH="update-node-size-data"
34-
EXISTING_PR=$(gh pr list --head $PR_BRANCH --json number,title,state | jq -r '.[0]')
35-
if [ "$EXISTING_PR" != "null" ]; then
36-
echo "Found existing PR: $EXISTING_PR"
37-
echo "pr_number=$(echo $EXISTING_PR | jq -r '.number')" >> $GITHUB_OUTPUT
38-
else
39-
echo "No existing PR found"
40-
fi
32+
- name: Check for existing PR
33+
id: check-pr
34+
run: |
35+
PR_BRANCH="update-node-size-data"
36+
EXISTING_PR=$(gh pr list --head $PR_BRANCH --json number,title,state | jq -r '.[0]')
37+
if [ "$EXISTING_PR" != "null" ]; then
38+
echo "Found existing PR: $EXISTING_PR"
39+
echo "pr_number=$(echo $EXISTING_PR | jq -r '.number')" >> $GITHUB_OUTPUT
40+
else
41+
echo "No existing PR found"
42+
fi
4143
42-
- name: Update existing PR or create new one
43-
if: steps.check-pr.outputs.pr_number == ''
44-
uses: peter-evans/create-pull-request@v3
45-
with:
46-
token: ${{ secrets.GITHUB_TOKEN }}
47-
commit-message: Update node size data
48-
title: 'Update Node Size Data'
49-
body: |
50-
This is an automated PR to update the node size data.
51-
Please review the changes and merge if everything looks correct.
52-
branch: update-node-size-data
53-
delete-branch: true
44+
- name: Update existing PR or create new one
45+
if: steps.check-pr.outputs.pr_number == ''
46+
uses: peter-evans/create-pull-request@v3
47+
with:
48+
token: ${{ secrets.GITHUB_TOKEN }}
49+
commit-message: Update node size data
50+
title: 'Update Node Size Data'
51+
body: |
52+
This is an automated PR to update the node size data.
53+
Please review the changes and merge if everything looks correct.
54+
branch: update-node-size-data
55+
delete-branch: true
5456

55-
- name: Update existing PR
56-
if: steps.check-pr.outputs.pr_number != ''
57-
run: |
58-
git config --global user.name 'github-actions[bot]'
59-
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
60-
git add linea-node-size/data.json
61-
git commit -m "Update node size data"
62-
git push origin update-node-size-data
57+
- name: Update existing PR
58+
if: steps.check-pr.outputs.pr_number != ''
59+
run: |
60+
git config --global user.name 'github-actions[bot]'
61+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
62+
git add linea-node-size/data.json
63+
git commit -m "Update node size data"
64+
git push origin update-node-size-data
6365
6466
slackNotification:
6567
needs: [update-data]
@@ -73,6 +75,6 @@ jobs:
7375
env:
7476
SLACK_CHANNEL: doc-ci-alerts
7577
SLACK_COLOR: danger
76-
sSLACK_TITLE: Linea node size update - Failure
78+
SLACK_TITLE: Linea node size update - Failure
7779
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
7880
MSG_MINIMAL: true

.linkspector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ excludedDirs:
66
- ./.vercel
77
- ./build
88
- ./.docusaurus
9+
followRedirects: true
910
ignorePatterns:
1011
- pattern: '^https://github\.com(?:[/?].*)?$'
1112
- pattern: '^https://x\.com(?:[/?].*)?$'
1213
- pattern: '^https://support\.metamask\.io(?:[/?].*)?$'
1314
- pattern: '^https://(?:www\.)?infura\.io/faucet/linea(?:[/?].*)?$'
14-
- pattern: '^https://(?:www\.)?infura\.io(?:[/?].*)?$'
1515
- pattern: '^https://rpc\.sepolia\.linea\.build(?:[/?].*)?$'
1616
- pattern: '^https://help\.coinbase\.com(?:[/?].*)?$'
1717
- pattern: '^https://bridge\.linea\.build(?:[/?].*)?$'

0 commit comments

Comments
 (0)