Skip to content

Commit d07d089

Browse files
committed
Map ELECTRUM_API_KEY secret as env for the test job
Repository secrets need to be explicitly mapped to environment variables via env: — they aren't injected into process.env automatically. The ${{ secrets.ELECTRUM_API_KEY }} expression reads the secret and exposes it as the ELECTRUM_API_KEY env var for the test step.
1 parent 07abc8c commit d07d089

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/node.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ jobs:
3939

4040
- name: Run tests
4141
run: npm test
42+
env:
43+
ELECTRUM_API_KEY: ${{ secrets.ELECTRUM_API_KEY }}

0 commit comments

Comments
 (0)