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

@@ -12,6 +12,8 @@ on:
branches: [ "master" ]
workflow_dispatch:
permissions: {}
jobs:
analyze:
name: Analyze