Skip to content

Commit 7eb45a2

Browse files
authored
Fix permissions for github workflows (DataDog#2684)
* test * fix permissions * test * revert tests
1 parent 41c519e commit 7eb45a2

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/master.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ jobs:
1414
# Options
1515
standard: true
1616
secrets: inherit
17-
# needed for codecov in test-target.yml, allows the action to get a JWT signed by Github
1817
permissions:
19-
id-token: write
18+
# needed for codecov in test-target.yml, allows the action to get a JWT signed by Github
19+
id-token: write
20+
# needed for compute-matrix in test-target.yml
21+
contents: read
2022

2123
publish-test-results:
2224
needs:

.github/workflows/pr.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
repo: extras
1919
python-version: "3.12"
2020
secrets: inherit
21-
# needed for codecov in test-target.yml, allows the action to get a JWT signed by Github
2221
permissions:
23-
id-token: write
22+
# needed for codecov in test-target.yml, allows the action to get a JWT signed by Github
23+
id-token: write
24+
# needed for compute-matrix in test-target.yml
25+
contents: read

.github/workflows/test-agent.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
agent-image-windows: "${{ inputs.agent-image-windows }}"
5050
agent-image-windows-py2: "${{ inputs.agent-image-windows-py2 }}"
5151
secrets: inherit
52-
# needed for codecov in test-target.yml, allows the action to get a JWT signed by Github
5352
permissions:
54-
id-token: write
53+
# needed for codecov in test-target.yml, allows the action to get a JWT signed by Github
54+
id-token: write
55+
# needed for compute-matrix in test-target.yml
56+
contents: read

0 commit comments

Comments
 (0)