ci: set default permissions for workflows

The default workflow permissions are overly broad; setting permissions
explicitly at the workflow level ensures excessive permissions are not
unintentionally granted to jobs. For details, see:
https://docs.zizmor.sh/audits/#excessive-permissions
This commit is contained in:
Daniel Hast
2026-03-07 10:05:39 -05:00
parent 63844b7904
commit 755087f8ef
20 changed files with 57 additions and 0 deletions

View File

@@ -8,6 +8,9 @@ on:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- 'release-[0-9]+.[0-9]+'
permissions: {}
jobs:
lint-commits:
runs-on: ubuntu-latest