follow the OpenSSF recommendations for github permissions (#6378)

Signed-off-by: Raffaele Di Fazio <raffo@github.com>
This commit is contained in:
Raffaele Di Fazio 2026-04-20 12:49:51 +02:00 committed by GitHub
parent 5dd6e9339b
commit 51995b83f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 3 deletions

View File

@ -10,6 +10,8 @@ on:
- cron: '35 13 * * 5'
workflow_dispatch:
permissions: {}
jobs:
analyze:
name: Analyze

View File

@ -8,14 +8,15 @@ on:
# once a day
- cron: '0 0 * * *'
permissions:
contents: write
pull-requests: write
permissions: {}
jobs:
update-versions-with-renovate:
runs-on: ubuntu-latest
if: github.repository == 'kubernetes-sigs/external-dns'
permissions:
contents: write
pull-requests: write
steps:
- name: checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

View File

@ -8,6 +8,8 @@ on:
branches:
- master
permissions: {}
jobs:
approve:
name: Approve ok-to-test

View File

@ -4,6 +4,8 @@ on:
pull_request:
branches: [ master ]
permissions: {}
jobs:
lint:
name: Markdown and Go