Skip to content

Commit 00f64c1

Browse files
Merge pull request #50 from jeromekelleher/add-zizmor-part-2
Declare CODECOV_TOKEN as a named workflow_call secret
2 parents 4aec7e4 + c79107f commit 00f64c1

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/c-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ on:
1212
description: 'Directory to find the C library'
1313
required: true
1414
type: string
15+
secrets:
16+
CODECOV_TOKEN:
17+
# This first-party tskit-dev reusable workflow consumes
18+
# secrets.CODECOV_TOKEN; declaring it as a named workflow_call secret
19+
# lets callers pass it explicitly instead of `secrets: inherit`.
20+
# Required because the codecov step uses fail_ci_if_error: true.
21+
required: true
1522

1623
permissions:
1724
contents: read

.github/workflows/python-c-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ on:
1818
required: false
1919
type: string
2020
default: 'tests/test_python_c.py'
21+
secrets:
22+
CODECOV_TOKEN:
23+
# This first-party tskit-dev reusable workflow consumes
24+
# secrets.CODECOV_TOKEN; declaring it as a named workflow_call secret
25+
# lets callers pass it explicitly instead of `secrets: inherit`.
26+
# Required because the codecov step uses fail_ci_if_error: true.
27+
required: true
2128

2229
permissions:
2330
contents: read

.github/workflows/python-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ on:
2525
required: false
2626
type: string
2727
default: "false"
28+
secrets:
29+
CODECOV_TOKEN:
30+
# This first-party tskit-dev reusable workflow consumes
31+
# secrets.CODECOV_TOKEN; declaring it as a named workflow_call secret
32+
# lets callers pass it explicitly instead of `secrets: inherit`.
33+
# Required because the codecov step uses fail_ci_if_error: true.
34+
required: true
2835

2936
permissions:
3037
contents: read

0 commit comments

Comments
 (0)