Skip to content

Commit 855aad1

Browse files
Pass required permissions to all workflows that use codecov (#20205)
* Update master.yml * test slurm * Update constants.py * test * revert --------- Co-authored-by: Sarah Witt <sarah.witt@datadoghq.com>
1 parent 5a62918 commit 855aad1

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

.github/workflows/master.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
pytest-args: '-m "not flaky"'
2929
secrets: inherit
3030

31+
# needed for codecov in test-target.yml, allows the action to get a JWT signed by Github
32+
permissions:
33+
id-token: write
34+
3135
publish-test-results:
3236

3337
needs:

.github/workflows/nightly-base-package.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
jobs:
1414
test:
1515
uses: ./.github/workflows/test-all.yml
16+
17+
# needed for codecov in test-target.yml, allows the action to get a JWT signed by Github
18+
permissions:
19+
id-token: write
20+
1621
with:
1722
repo: core
1823

.github/workflows/pr-all.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ concurrency:
1717
jobs:
1818
test:
1919
uses: ./.github/workflows/test-all.yml
20+
21+
# needed for codecov in test-target.yml, allows the action to get a JWT signed by Github
22+
permissions:
23+
id-token: write
24+
2025
with:
2126
repo: core
2227

.github/workflows/test-target.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ jobs:
114114
TRACE_CAPTURE_BASE_DIR: "trace-captures"
115115
TRACE_CAPTURE_LOG: "trace-captures/output.log"
116116

117+
# needed for codecov in test-target.yml, allows the action to get a JWT signed by Github
118+
permissions:
119+
id-token: write
117120
steps:
118121

119122
- name: Set environment variables with sanitized paths

0 commit comments

Comments
 (0)