Skip to content

Commit 51995b8

Browse files
authored
follow the OpenSSF recommendations for github permissions (#6378)
Signed-off-by: Raffaele Di Fazio <raffo@github.com>
1 parent 5dd6e93 commit 51995b8

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/codeql-analysis.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
- cron: '35 13 * * 5'
1111
workflow_dispatch:
1212

13+
permissions: {}
14+
1315
jobs:
1416
analyze:
1517
name: Analyze

.github/workflows/dependency-update.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ on:
88
# once a day
99
- cron: '0 0 * * *'
1010

11-
permissions:
12-
contents: write
13-
pull-requests: write
11+
permissions: {}
1412

1513
jobs:
1614
update-versions-with-renovate:
1715
runs-on: ubuntu-latest
1816
if: github.repository == 'kubernetes-sigs/external-dns'
17+
permissions:
18+
contents: write
19+
pull-requests: write
1920
steps:
2021
- name: checkout
2122
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/gh-workflow-approve.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
branches:
99
- master
1010

11+
permissions: {}
12+
1113
jobs:
1214
approve:
1315
name: Approve ok-to-test

.github/workflows/lint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
pull_request:
55
branches: [ master ]
66

7+
permissions: {}
8+
79
jobs:
810
lint:
911
name: Markdown and Go

0 commit comments

Comments
 (0)