Skip to content

Commit 009131d

Browse files
committed
Declare secrets
1 parent 0de426c commit 009131d

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: CI
2-
on: workflow_call
2+
on:
3+
workflow_call:
4+
secrets:
5+
codecov_token:
6+
required: true
37
jobs:
48
lint:
59
name: Lint source files
@@ -148,7 +152,7 @@ jobs:
148152
with:
149153
file: ./coverage/coverage-final.json
150154
fail_ci_if_error: true
151-
token: ${{ secrets.CODECOV_TOKEN }}
155+
token: ${{ secrets.codecov_token }}
152156

153157
test:
154158
name: Run tests on Node v${{ matrix.node_version_to_setup }}

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
ci:
55
uses: ./.github/workflows/ci.yml
66
secrets:
7-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7+
codecov_token: ${{ secrets.CODECOV_TOKEN }}
88

99
diff-npm-package:
1010
name: Diff content of NPM package

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
ci:
55
uses: ./.github/workflows/ci.yml
66
secrets:
7-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7+
codecov_token: ${{ secrets.CODECOV_TOKEN }}
88
deploy-to-npm-branch:
99
name: Deploy to `npm` branch
1010
needs: ci

0 commit comments

Comments
 (0)