Skip to content

Commit cdf80af

Browse files
Fix permissions. (#3856)
1 parent c31d1a9 commit cdf80af

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/reusable-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ on:
4141

4242
jobs:
4343
pre-commit:
44+
permissions:
45+
id-token: write
46+
contents: read
4447
uses: ./.github/workflows/reusable-pre-commit.yml
4548
with:
4649
target-branch: ${{ inputs.target-branch }}

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
!contains(github.event.pull_request.labels.*.name, 'ci/skip') &&
2626
!contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')) ||
2727
github.event_name == 'schedule'
28+
permissions:
29+
id-token: write
30+
contents: read
2831
uses: ./.github/workflows/reusable-pre-commit.yml
2932
with:
3033
enable-commit-changes: true

0 commit comments

Comments
 (0)