[actions] restrict permissions for GITHUB_TOKEN
This commit is contained in:
committed by
Jordan Harband
parent
2dad0455ec
commit
59532c74c6
4
.github/workflows/latest-npm.yml
vendored
4
.github/workflows/latest-npm.yml
vendored
@@ -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