Skip to content

Commit 1a14b76

Browse files
authored
Merge branch 'master' into master
2 parents 928855d + ec8906b commit 1a14b76

21 files changed

+250
-44
lines changed

.github/SECURITY.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
Please file a private vulnerability report via GitHub, email [@ljharb](https://github.com/ljharb), or see https://tidelift.com/security if you have a potential security vulnerability to report.
44

5+
## Escalation
6+
7+
If you do not receive an acknowledgement of your report within 6 business days, or if you cannot find a private security contact for the project, you may escalate to the OpenJS Foundation CNA at `[email protected]`.
8+
9+
If the project acknowledges your report but does not provide any further response or engagement within 14 days, escalation is also appropriate.
10+
11+
512
## OpenSSF CII Best Practices
613

714
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/684/badge)](https://bestpractices.coreinfrastructure.org/projects/684)

.github/workflows/latest-npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
iojs.org:443
6464
nodejs.org:443
6565
registry.npmjs.org:443
66-
- uses: actions/checkout@v4
66+
- uses: actions/checkout@v6
6767
- uses: ljharb/actions/node/install@main
6868
name: 'install node'
6969
with:

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
raw.githubusercontent.com:443
1717
nodejs.org:443
1818
registry.npmjs.org:443
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v6
2020
- uses: ljharb/actions/node/install@main
2121
name: 'nvm install ${{ matrix.node-version }} && npm install'
2222
with:
@@ -35,7 +35,7 @@ jobs:
3535
pkg-containers.githubusercontent.com:443
3636
nodejs.org:443
3737
registry.npmjs.org:443
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v6
3939
- uses: ljharb/actions/node/install@main
4040
name: 'nvm install ${{ matrix.node-version }} && npm install'
4141
with:
@@ -52,7 +52,7 @@ jobs:
5252
raw.githubusercontent.com:443
5353
nodejs.org:443
5454
registry.npmjs.org:443
55-
- uses: actions/checkout@v4
55+
- uses: actions/checkout@v6
5656
- uses: ljharb/actions/node/install@main
5757
name: 'nvm install ${{ matrix.node-version }} && npm install'
5858
with:
@@ -67,6 +67,6 @@ jobs:
6767
allowed-endpoints:
6868
github.com:443
6969
raw.githubusercontent.com:443
70-
- uses: actions/checkout@v4
70+
- uses: actions/checkout@v6
7171
- name: check tests filenames
7272
run: ./rename_test.sh --check

.github/workflows/nvm-install-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
outputs:
1717
matrix: ${{ steps.matrix.outputs.matrix }}
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v6
2020
with:
2121
fetch-depth: 0
2222
- id: matrix
@@ -55,7 +55,7 @@ jobs:
5555
- 2 shlvls
5656

5757
steps:
58-
- uses: actions/checkout@v4
58+
- uses: actions/checkout@v6
5959
- name: resolve HEAD to sha
6060
run: |
6161
if [ '${{ matrix.ref }}' = 'HEAD' ]; then

.github/workflows/rebase.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v6
1515
- uses: ljharb/rebase@master
1616
env:
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
raw.githubusercontent.com:443
2020
release-assets.githubusercontent.com:443
2121
registry.npmjs.org:443
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v6
2323
with:
2424
fetch-tags: true
25-
- uses: actions/setup-node@v4
25+
- uses: actions/setup-node@v6
2626
with:
2727
node-version: "14"
2828
- run: npm install

.github/workflows/shellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
github.com:443
3636
pkg-containers.githubusercontent.com:443
3737
formulae.brew.sh:443
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v6
3939
- name: Set up Homebrew
4040
uses: Homebrew/actions/setup-homebrew@master
4141
- name: Install latest shellcheck

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
iojs.org:443
5353
azure.archive.ubuntu.com:80
5454
packages.microsoft.com:443
55-
- uses: actions/checkout@v4
55+
- uses: actions/checkout@v6
5656
- run: sudo apt-get update; sudo apt-get install ${{ matrix.shell }}
5757
if: matrix.shell == 'zsh' || matrix.shell == 'ksh'
5858
# zsh (https://github.com/actions/runner-images/issues/264) and ksh are not in the ubuntu image

.github/workflows/toc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ jobs:
2121
github.com:443
2222
registry.npmjs.org:443
2323
api.github.com:443
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v6
2525
with:
2626
# https://github.com/actions/checkout/issues/217#issue-599945005
2727
# pulls all commits (needed for lerna / semantic release to correctly version)
2828
fetch-depth: "0"
2929

3030
# pulls all tags (needed for lerna / semantic release to correctly version)
3131
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
32-
- uses: actions/setup-node@v4
32+
- uses: actions/setup-node@v6
3333
with:
3434
node-version: 'lts/*'
3535
- run: npm install

.github/workflows/windows-npm.yml

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -125,23 +125,55 @@ jobs:
125125
npm-node-version: '21'
126126
- wsl-distrib: Ubuntu-18.04
127127
npm-node-version: '18'
128+
# node v24+ doesn't work on WSL1 (exec format error)
129+
- wsl-distrib: Debian
130+
npm-node-version: '--lts'
131+
- wsl-distrib: Ubuntu-20.04
132+
npm-node-version: '--lts'
128133
method:
129134
- ''
130135
- 'script'
131136
steps:
132-
- uses: Vampire/setup-wsl@v3
137+
# For Ubuntu: install with packages directly
138+
- if: matrix.wsl-distrib != 'Debian'
139+
uses: Vampire/setup-wsl@v3
133140
with:
134141
distribution: ${{ matrix.wsl-distrib }}
135142
additional-packages: bash git curl ca-certificates wget
136143

137-
# see https://github.com/Vampire/setup-wsl/issues/76#issuecomment-3258201135
138-
- shell: 'wsl-bash {0}'
139-
run: 'sed -i s/ftp.debian.org/archive.debian.org/ /etc/apt/sources.list'
140-
- uses: Vampire/setup-wsl@v3
144+
# For Debian: install without packages first (apt-get update fails due to stale sources.list)
145+
# see https://github.com/Vampire/setup-wsl/issues/76
146+
- if: matrix.wsl-distrib == 'Debian'
147+
uses: Vampire/setup-wsl@v3
141148
with:
142149
distribution: ${{ matrix.wsl-distrib }}
143-
additional-packages: bash git curl ca-certificates wget
144-
update: 'true'
150+
- if: matrix.wsl-distrib == 'Debian'
151+
shell: 'wsl-bash {0}'
152+
run: 'sed -i s/ftp.debian.org/archive.debian.org/ /etc/apt/sources.list'
153+
- if: matrix.wsl-distrib == 'Debian'
154+
name: 'Install packages with retries'
155+
shell: 'wsl-bash {0}'
156+
run: |
157+
retry() {
158+
local n=0
159+
local max=3
160+
local delay=5
161+
while true; do
162+
"$@" && break || {
163+
n=$((n+1))
164+
if [ $n -lt $max ]; then
165+
echo "Command failed. Attempt $n/$max. Retrying in $delay seconds..."
166+
sleep $delay
167+
else
168+
echo "Command failed after $max attempts."
169+
return 1
170+
fi
171+
}
172+
done
173+
}
174+
retry apt-get update
175+
retry apt-get upgrade --yes
176+
retry apt-get install --yes bash git curl ca-certificates wget
145177
146178
- name: Retrieve nvm on WSL
147179
run: |
@@ -187,15 +219,6 @@ jobs:
187219
distribution: ${{ matrix.wsl-distrib }}
188220
additional-packages: bash git curl ca-certificates wget
189221

190-
# see https://github.com/Vampire/setup-wsl/issues/76#issuecomment-3258201135
191-
- shell: 'wsl-bash {0}'
192-
run: 'sed -i s/ftp.debian.org/archive.debian.org/ /etc/apt/sources.list'
193-
- uses: Vampire/setup-wsl@v3
194-
with:
195-
distribution: ${{ matrix.wsl-distrib }}
196-
additional-packages: bash git curl ca-certificates wget
197-
update: 'true'
198-
199222
- name: Retrieve nvm on WSL
200223
run: |
201224
if [ -z "${{ matrix.method }}" ]; then

0 commit comments

Comments
 (0)