Skip to content

Commit 80a1eb6

Browse files
committed
Adjust CI permissions
1 parent 6e12cf5 commit 80a1eb6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: CI
22
on:
33
- push
44
- pull_request
5+
permissions:
6+
contents: read
57
jobs:
68
test:
79
name: Node.js ${{ matrix.node-version }}
@@ -22,7 +24,6 @@ jobs:
2224
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2325
restore-keys: |
2426
${{ runner.os }}-node-
25-
- run: npm install -g npm@8
2627
- run: npm ci
2728
- run: npm test
2829
- uses: codecov/codecov-action@v1

.github/workflows/scorecard.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ on:
1111
# To guarantee Maintained check is occasionally updated. See
1212
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
1313
schedule:
14-
- cron: '16 21 * * 1'
14+
- cron: "16 21 * * 1"
1515
push:
16-
branches: [ "master" ]
16+
branches: ["master"]
1717

1818
# Declare default permissions as read only.
19-
permissions: read-all
19+
permissions:
20+
contents: read
2021

2122
jobs:
2223
analysis:

0 commit comments

Comments
 (0)