Skip to content

Commit e4132f0

Browse files
authored
Merge pull request #392 from nasa/391-convert-codecov-token-to-variable
391 convert codecov token to variable
2 parents 4c50ad3 + ca3063f commit e4132f0

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: CryptoLib
22

3+
global_env:
4+
CODECOV_TOKEN: 71699f25-12a3-44a4-8a83-be777b9e577a
5+
36
on:
47
pull_request:
58
branches: [ main, dev ]
@@ -54,7 +57,7 @@ jobs:
5457
- name: Upload
5558
uses: codecov/codecov-action@v4
5659
env:
57-
CODECOV_TOKEN: 71699f25-12a3-44a4-8a83-be777b9e577a
60+
CODECOV_TOKEN: ${{ matrix.global_env.CODECOV_TOKEN }}
5861
with:
5962
files: 'coverage/*.c.gcov'
6063
verbose: true
@@ -103,7 +106,7 @@ jobs:
103106
# - name: Upload
104107
# uses: codecov/codecov-action@v4
105108
# env:
106-
# CODECOV_TOKEN: 71699f25-12a3-44a4-8a83-be777b9e577a
109+
# CODECOV_TOKEN: ${{ matrix.global_env.CODECOV_TOKEN }}
107110
# with:
108111
# files: 'coverage/*.c.gcov'
109112
# verbose: true
@@ -156,7 +159,7 @@ jobs:
156159
- name: Upload
157160
uses: codecov/codecov-action@v4
158161
env:
159-
CODECOV_TOKEN: 71699f25-12a3-44a4-8a83-be777b9e577a
162+
CODECOV_TOKEN: ${{ matrix.global_env.CODECOV_TOKEN }}
160163
with:
161164
files: 'coverage/*.c.gcov'
162165
verbose: true
@@ -210,7 +213,7 @@ jobs:
210213
- name: Upload
211214
uses: codecov/codecov-action@v4
212215
env:
213-
CODECOV_TOKEN: 71699f25-12a3-44a4-8a83-be777b9e577a
216+
CODECOV_TOKEN: ${{ matrix.global_env.CODECOV_TOKEN }}
214217
with:
215218
files: 'coverage/*.c.gcov'
216219
verbose: true
@@ -244,7 +247,7 @@ jobs:
244247
- name: Upload
245248
uses: codecov/codecov-action@v4
246249
env:
247-
CODECOV_TOKEN: 71699f25-12a3-44a4-8a83-be777b9e577a
250+
CODECOV_TOKEN: ${{ matrix.global_env.CODECOV_TOKEN }}
248251
with:
249252
files: 'coverage/*.c.gcov'
250253
verbose: true

support/standalone/standalone.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ extern "C"
7575
#define CRYPTO_MAX_INPUT_TOKENS 32
7676
#define CRYPTO_MAX_INPUT_TOKEN_SIZE 64
7777

78-
#define CRYPTO_CMD_UNKNOWN -1
78+
#define CRYPTO_CMD_UNKNOWN (-1)
7979
#define CRYPTO_CMD_HELP 0
8080
#define CRYPTO_CMD_EXIT 1
8181
#define CRYPTO_CMD_NOOP 2

0 commit comments

Comments
 (0)