Skip to content

Commit 56c6bb6

Browse files
authored
Merge branch 'main' into css/v7-values/early
2 parents b768a6a + ef5c15f commit 56c6bb6

File tree

677 files changed

+4933
-2881
lines changed

Some content is hidden

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

677 files changed

+4933
-2881
lines changed

.github/CODEOWNERS

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,18 @@
66
# https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/about-code-owners
77

88
/schemas/ @mdn/bcd-owners
9-
/.github/workflows/ @mdn/engineering
10-
/.github/CODEOWNERS @mdn/engineering
9+
10+
/.github/ @mdn/engineering
11+
/.vscode/ @mdn/engineering
12+
/lint/ @mdn/engineering
13+
/scripts/ @mdn/engineering
14+
/types/ @mdn/engineering
15+
/utils/ @mdn/engineering
16+
/* @mdn/engineering
17+
/package.json @mdn/engineering @mdn-bot
18+
/package-lock.json @mdn/engineering @mdn-bot
19+
20+
# Exclude some paths
21+
/.github/ISSUE_TEMPLATE/
22+
/.github/PULL_REQUESET_TEMPLATE.md
23+
/*.md

.github/workflows/add-push-artifacts.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ jobs:
1111
name: Enumerate and diff features
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v5
14+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1515
with:
1616
fetch-depth: 0 # get the full repository checkout, not just the inciting commit
1717
persist-credentials: false
18-
- uses: actions/setup-node@v6
18+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
1919
with:
2020
node-version-file: ".nvmrc"
2121
cache: npm
2222
package-manager-cache: true
2323
- run: npm ci
2424
- run: npx tsx ./scripts/enumerate-features.ts features.json
2525
- run: npx tsx ./scripts/diff-features.ts --no-github --format=json > features.diff.json
26-
- uses: actions/upload-artifact@v4
26+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
2727
with:
2828
name: enumerate-features
2929
path: features.json
30-
- uses: actions/upload-artifact@v4
30+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
3131
with:
3232
name: diff-features
3333
path: features.diff.json

.github/workflows/issue-regex-labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
issue-labeler:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: github/[email protected]
15+
- uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4
1616
with:
1717
configuration-path: .github/issue-regex-labeler.yml
1818
enable-versioned-regex: 0

.github/workflows/labeler.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
label-py-path:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/labeler@v6
14+
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
1515
with:
1616
repo-token: ${{ secrets.GITHUB_TOKEN }}
1717
sync-labels: true
1818

1919
label-by-size:
20-
if: github.actor != 'dependabot[bot]' && !startsWith(github.event.pull_request.title, 'Release v')
20+
if: github.secret_source == 'Actions' && !startsWith(github.event.pull_request.title, 'Release v')
2121
needs: label-py-path
2222
runs-on: ubuntu-latest
2323
steps:

.github/workflows/node.js.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
name: Active LTS
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1717
with:
1818
persist-credentials: false
19-
- uses: actions/setup-node@v6
19+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2020
with:
2121
node-version-file: ".nvmrc"
2222
cache: npm

.github/workflows/ping-other-repos.yml

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

.github/workflows/pr-rebase-needed.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: PR Needs Rebase
22
on:
33
push:
44
pull_request_target:
5+
branches:
6+
- main
57
types: [synchronize]
68

79
permissions:

.github/workflows/pr-review-companion.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020

2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v5
23+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2424
with:
2525
persist-credentials: false
2626

2727
- name: Setup Node.js
28-
uses: actions/setup-node@v6
28+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2929
with:
3030
node-version-file: ".nvmrc"
3131
package-manager-cache: false

.github/workflows/release-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ concurrency:
1919

2020
jobs:
2121
manage-release-pr:
22-
if: github.repository == 'mdn/browser-compat-data' && github.actor != 'dependabot[bot]' && !startsWith(github.event.head_commit.message, 'Release v')
22+
if: github.repository == 'mdn/browser-compat-data' && github.secret_source == 'Actions' && !startsWith(github.event.head_commit.message, 'Release v')
2323
name: Manage release PR
2424
runs-on: ubuntu-latest
2525

2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v5
28+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2929
with:
3030
fetch-depth: 0
3131
fetch-tags: true
@@ -34,7 +34,7 @@ jobs:
3434
persist-credentials: true
3535

3636
- name: Setup Node
37-
uses: actions/setup-node@v6
37+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
3838
with:
3939
node-version-file: ".nvmrc"
4040
package-manager-cache: false

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
permissions:
1717
contents: write
18+
id-token: write # OIDC for npm Trusted Publishing
1819
issues: write
1920

2021
jobs:
@@ -25,7 +26,7 @@ jobs:
2526

2627
steps:
2728
- name: Checkout (BCD)
28-
uses: actions/checkout@v5
29+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2930
with:
3031
persist-credentials: false
3132

@@ -41,16 +42,19 @@ jobs:
4142
runs-on: ubuntu-latest
4243

4344
steps:
44-
- uses: actions/checkout@v5
45+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4546
with:
4647
persist-credentials: false
4748

48-
- uses: actions/setup-node@v6
49+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
4950
with:
5051
node-version-file: ".nvmrc"
5152
package-manager-cache: false
5253
registry-url: "https://registry.npmjs.org/"
5354

55+
# Ensure npm 11.5.1 or later for trusted publishing
56+
- run: npm install -g npm@latest
57+
5458
- run: npm ci
5559

5660
- run: npm test
@@ -59,9 +63,7 @@ jobs:
5963

6064
- run: npm run build
6165

62-
- run: npm publish build/ --access public
63-
env:
64-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
66+
- run: npm publish build/ --access public --provenance
6567

6668
- name: Add JSON as a release asset
6769
run: gh release upload ${GITHUB_REF#refs/*/} build/data.json
@@ -70,7 +72,7 @@ jobs:
7072
# run: npm run --silent stats | gh issue comment https://github.com/mdn/browser-compat-data/issues/3555 --body-file -
7173

7274
- name: Trigger BCD deployment
73-
uses: actions/github-script@v8
75+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
7476
with:
7577
github-token: ${{ secrets.DISPATCH_PAT }}
7678
script: |

0 commit comments

Comments
 (0)