Skip to content

Commit

Permalink
Adjust CI permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Apr 8, 2024
1 parent 6e12cf5 commit 80a1eb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: CI
on:
- push
- pull_request
permissions:
contents: read
jobs:
test:
name: Node.js ${{ matrix.node-version }}
Expand All @@ -22,7 +24,6 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install -g npm@8
- run: npm ci
- run: npm test
- uses: codecov/codecov-action@v1
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ on:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
schedule:
- cron: '16 21 * * 1'
- cron: "16 21 * * 1"
push:
branches: [ "master" ]
branches: ["master"]

# Declare default permissions as read only.
permissions: read-all
permissions:
contents: read

jobs:
analysis:
Expand Down

0 comments on commit 80a1eb6

Please sign in to comment.