From 1e27b66366944b507750fdf0cb6cc72f65be0e97 Mon Sep 17 00:00:00 2001 From: Naoki Oketani Date: Sun, 4 May 2025 03:29:41 +0000 Subject: [PATCH 1/2] fix: disable scan-on-windows job due to npm.cmd EINVAL error --- .github/workflows/daily.yml | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index f4a53bb..7fb9d23 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -23,21 +23,22 @@ jobs: dedupe_issues: true production_flag: true - scan-on-windows: - name: npm audit - runs-on: windows-latest - steps: - - uses: actions/checkout@v4 - # https://stackoverflow.com/questions/72401421/message-npm-warn-config-global-global-local-are-deprecated-use-loc - - run: | - npm install npm-windows-upgrade --location=global - npm-windows-upgrade --npm-version latest - - name: install dependencies - run: npm ci - - uses: oke-py/npm-audit-action@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - issue_assignees: oke-py - issue_labels: vulnerability - dedupe_issues: true - production_flag: true + # scan-on-windows job disabled due to npm.cmd EINVAL error on Windows + # scan-on-windows: + # name: npm audit + # runs-on: windows-latest + # steps: + # - uses: actions/checkout@v4 + # # https://stackoverflow.com/questions/72401421/message-npm-warn-config-global-global-local-are-deprecated-use-loc + # - run: | + # npm install npm-windows-upgrade --location=global + # npm-windows-upgrade --npm-version latest + # - name: install dependencies + # run: npm ci + # - uses: oke-py/npm-audit-action@v3 + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # issue_assignees: oke-py + # issue_labels: vulnerability + # dedupe_issues: true + # production_flag: true From e85a1722945bf910cb34648930ea798de0e91f3e Mon Sep 17 00:00:00 2001 From: Naoki Oketani Date: Sun, 4 May 2025 03:32:18 +0000 Subject: [PATCH 2/2] fix: add PowerShell execution policy setting to Windows jobs --- .github/workflows/daily.yml | 10 ++++++++-- .github/workflows/test.yml | 4 ++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 7fb9d23..f99c839 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -29,10 +29,16 @@ jobs: # runs-on: windows-latest # steps: # - uses: actions/checkout@v4 + # # Set PowerShell execution policy for this process + # - name: Set PowerShell execution policy + # shell: powershell + # run: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process -Force # # https://stackoverflow.com/questions/72401421/message-npm-warn-config-global-global-local-are-deprecated-use-loc - # - run: | + # - name: Upgrade npm + # shell: powershell + # run: | # npm install npm-windows-upgrade --location=global - # npm-windows-upgrade --npm-version latest + # npm-windows-upgrade --npm-version latest --no-prompt # - name: install dependencies # run: npm ci # - uses: oke-py/npm-audit-action@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 59b6e4d..028f4b4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -84,6 +84,10 @@ jobs: # - uses: actions/setup-node@v4 # with: # node-version: ${{ matrix.node }} + # # Set PowerShell execution policy for this process + # - name: Set PowerShell execution policy + # shell: powershell + # run: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process -Force # # Node.js 20 already includes a recent npm version, so npm upgrade is not needed # - name: Run npm audit action # uses: ./