mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-09-01 00:00:07 +08:00
[actions] restrict permissions for GITHUB_TOKEN
This commit is contained in:
@@ -4,6 +4,8 @@ on: [pull_request, push]
|
||||
|
||||
jobs:
|
||||
nodes:
|
||||
permissions:
|
||||
contents: read
|
||||
name: 'nvm install-latest-npm'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -44,6 +46,8 @@ jobs:
|
||||
- run: npm --version
|
||||
|
||||
node:
|
||||
permissions:
|
||||
contents: none
|
||||
name: 'nvm install-latest-npm'
|
||||
needs: [nodes]
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user