[actions] restrict permissions for GITHUB_TOKEN
This commit is contained in:
committed by
Jordan Harband
parent
2dad0455ec
commit
59532c74c6
8
.github/workflows/windows-npm.yml
vendored
Executable file → Normal file
8
.github/workflows/windows-npm.yml
vendored
Executable file → Normal file
@@ -9,6 +9,8 @@ env:
|
||||
jobs:
|
||||
msys_fail_install:
|
||||
# Default installation does not work due to npm_config_prefix set to C:\npm\prefix
|
||||
permissions:
|
||||
contents: none
|
||||
name: 'MSYS fail prefix nvm install'
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
@@ -20,6 +22,8 @@ jobs:
|
||||
! nvm install --lts
|
||||
|
||||
msys_matrix:
|
||||
permissions:
|
||||
contents: none
|
||||
name: 'MSYS nvm install'
|
||||
runs-on: windows-latest
|
||||
strategy:
|
||||
@@ -43,6 +47,8 @@ jobs:
|
||||
nvm install ${{ matrix.npm-node-version }}
|
||||
|
||||
cygwin_matrix:
|
||||
permissions:
|
||||
contents: none
|
||||
name: 'Cygwin nvm install'
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
@@ -111,6 +117,8 @@ jobs:
|
||||
nvm install ${{ matrix.npm-node-version }}
|
||||
|
||||
nvm_windows:
|
||||
permissions:
|
||||
contents: none
|
||||
needs: [wsl_matrix, cygwin_matrix, msys_matrix, msys_fail_install]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user