Skip to content

Commit 23bf48b

Browse files
update covecove
1 parent a5f4a5d commit 23bf48b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/codecov.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on: [push, pull_request]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
pull-requests: write
811

912
strategy:
1013
matrix:
@@ -14,7 +17,9 @@ jobs:
1417
- name: Checkout repository
1518
uses: actions/checkout@v2
1619
with:
17-
fetch-depth: 2
20+
# Fine-grained PAT with contents:write and workflows:write
21+
# scopes
22+
token: ${{ secrets.GITHUB_TOKEN }}
1823

1924
- name: Set up Node.js ${{ matrix.node-version }}
2025
uses: actions/setup-node@v1
@@ -30,4 +35,4 @@ jobs:
3035
- name: Upload coverage to Codecov
3136
uses: codecov/codecov-action@v1
3237
with:
33-
token: ${{ secrets.CODECOV_TOKEN }}
38+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)