From c82e7a6f62b7c5452d91fc99b13a588c83d19444 Mon Sep 17 00:00:00 2001 From: Jordi Paris Ferrer Date: Sat, 17 Feb 2024 16:39:36 -0800 Subject: [PATCH 1/2] Fix typo in WSL section of README `u` -> `you` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 33df4cbf69e..23f300fc807 100644 --- a/README.md +++ b/README.md @@ -1037,7 +1037,7 @@ This could simply be solved by running this in your root directory: sudo chattr +i /etc/resolv.conf ``` -This deletes your `resolv.conf` file that is automatically generated when u run WSL, creates a new file and puts `nameserver 8.8.8.8`, then creates a `wsl.conf` file and adds `[network]` and `generateResolveConf = false` to prevent auto-generation of that file. +This deletes your `resolv.conf` file that is automatically generated when you run WSL, creates a new file and puts `nameserver 8.8.8.8`, then creates a `wsl.conf` file and adds `[network]` and `generateResolveConf = false` to prevent auto-generation of that file. You can check the contents of the file by running: From c24c3134a7390187a274422cf415f2bb7abaa5ed Mon Sep 17 00:00:00 2001 From: Raphael Boidol Date: Sun, 18 Feb 2024 21:56:53 +0100 Subject: [PATCH 2/2] [actions] update action versions to use node 20 --- .github/workflows/latest-npm.yml | 9 +++++---- .github/workflows/lint.yml | 16 ++++++++-------- .github/workflows/rebase.yml | 4 ++-- .github/workflows/release.yml | 9 ++++++--- .github/workflows/require-allow-edits.yml | 2 +- .github/workflows/shellcheck.yml | 7 ++++--- .github/workflows/tests.yml | 4 ++-- .github/workflows/toc.yml | 6 +++--- 8 files changed, 31 insertions(+), 26 deletions(-) diff --git a/.github/workflows/latest-npm.yml b/.github/workflows/latest-npm.yml index 954087bd131..b271404846e 100644 --- a/.github/workflows/latest-npm.yml +++ b/.github/workflows/latest-npm.yml @@ -9,11 +9,12 @@ jobs: latest: ${{ steps.set-matrix.outputs.requireds }} steps: - name: Harden Runner - uses: step-security/harden-runner@v1 + uses: step-security/harden-runner@v2 with: allowed-endpoints: iojs.org:443 nodejs.org:443 + raw.githubusercontent.com:443 - uses: ljharb/actions/node/matrix@main id: set-matrix with: @@ -46,7 +47,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@v1 + uses: step-security/harden-runner@v2 with: allowed-endpoints: github.com:443 @@ -54,7 +55,7 @@ jobs: iojs.org:443 nodejs.org:443 registry.npmjs.org:443 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ljharb/actions/node/install@main name: 'install node' with: @@ -75,7 +76,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@v1 + uses: step-security/harden-runner@v2 with: egress-policy: block - run: 'echo tests completed' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e9d06ce7368..b0a61f6d211 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,14 +8,14 @@ jobs: contents: read runs-on: ubuntu-latest steps: - - uses: step-security/harden-runner@v1 + - uses: step-security/harden-runner@v2 with: allowed-endpoints: github.com:443 raw.githubusercontent.com:443 nodejs.org:443 registry.npmjs.org:443 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ljharb/actions/node/install@main name: 'nvm install ${{ matrix.node-version }} && npm install' with: @@ -27,7 +27,7 @@ jobs: contents: read runs-on: ubuntu-latest steps: - - uses: step-security/harden-runner@v1 + - uses: step-security/harden-runner@v2 with: allowed-endpoints: ghcr.io:443 @@ -36,7 +36,7 @@ jobs: pkg-containers.githubusercontent.com:443 nodejs.org:443 registry.npmjs.org:443 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ljharb/actions/node/install@main name: 'nvm install ${{ matrix.node-version }} && npm install' with: @@ -48,14 +48,14 @@ jobs: contents: read runs-on: ubuntu-latest steps: - - uses: step-security/harden-runner@v1 + - uses: step-security/harden-runner@v2 with: allowed-endpoints: github.com:443 raw.githubusercontent.com:443 nodejs.org:443 registry.npmjs.org:443 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ljharb/actions/node/install@main name: 'nvm install ${{ matrix.node-version }} && npm install' with: @@ -67,11 +67,11 @@ jobs: contents: read runs-on: ubuntu-latest steps: - - uses: step-security/harden-runner@v1 + - uses: step-security/harden-runner@v2 with: allowed-endpoints: github.com:443 raw.githubusercontent.com:443 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: check tests filenames run: ./rename_test.sh --check diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index d464077f99c..e7724aed0d7 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -12,12 +12,12 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@v1 + uses: step-security/harden-runner@v2 with: allowed-endpoints: api.github.com:443 github.com:443 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ljharb/rebase@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7baf30247b..346a1845c08 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,13 +9,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@v1 + uses: step-security/harden-runner@v2 with: allowed-endpoints: github.com:443 + api.github.com:443 + objects.githubusercontent.com:443 + raw.githubusercontent.com:443 registry.npmjs.org:443 - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: "14" - run: npm install diff --git a/.github/workflows/require-allow-edits.yml b/.github/workflows/require-allow-edits.yml index 427eecbc76a..efb6c495ad5 100644 --- a/.github/workflows/require-allow-edits.yml +++ b/.github/workflows/require-allow-edits.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@v1 + uses: step-security/harden-runner@v2 with: allowed-endpoints: api.github.com:443 diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index 00772d2391f..2327d379742 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -27,13 +27,14 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@v1 + uses: step-security/harden-runner@v2 with: allowed-endpoints: ghcr.io:443 github.com:443 pkg-containers.githubusercontent.com:443 - - uses: actions/checkout@v3 + formulae.brew.sh:443 + - uses: actions/checkout@v4 - name: Set up Homebrew uses: Homebrew/actions/setup-homebrew@master - name: Install latest shellcheck @@ -52,7 +53,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@v1 + uses: step-security/harden-runner@v2 with: egress-policy: block - run: 'echo tests completed' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a17a71ec2d3..07b43564935 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,7 +26,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@v1 + uses: step-security/harden-runner@v2 with: allowed-endpoints: github.com:443 @@ -34,7 +34,7 @@ jobs: raw.githubusercontent.com:443 nodejs.org:443 iojs.org:443 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: sudo ${{ matrix.shell }} --version 2> /dev/null || dpkg -s ${{ matrix.shell }} 2> /dev/null || which ${{ matrix.shell }} - run: curl --version - run: wget --version diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml index b89fa957be8..94c8f0dc4ae 100644 --- a/.github/workflows/toc.yml +++ b/.github/workflows/toc.yml @@ -12,12 +12,12 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@v1 + uses: step-security/harden-runner@v2 with: allowed-endpoints: github.com:443 registry.npmjs.org:443 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # https://github.com/actions/checkout/issues/217#issue-599945005 # pulls all commits (needed for lerna / semantic release to correctly version) @@ -25,7 +25,7 @@ jobs: # pulls all tags (needed for lerna / semantic release to correctly version) - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: '16' - run: npm install