Skip to content

Commit d17579d

Browse files
Fix permissions. (#1451)
1 parent 387c87a commit d17579d

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
@@ -39,6 +39,9 @@ on:
3939

4040
jobs:
4141
pre-commit:
42+
permissions:
43+
id-token: write
44+
contents: read
4245
uses: ./.github/workflows/reusable-pre-commit.yml
4346
with:
4447
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)