build: harden main.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
This commit is contained in:
parent
a027e3c1e0
commit
492f7479e9
1 changed files with 4 additions and 0 deletions
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
|
@ -2,6 +2,10 @@ name: CI
|
||||||
on:
|
on:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read # to fetch code (actions/checkout)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Node.js ${{ matrix.node-version }}
|
name: Node.js ${{ matrix.node-version }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue