mirror of
https://github.com/neovim/neovim.git
synced 2026-03-28 19:32:01 +00:00
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:
4
.github/workflows/lintcommit.yml
vendored
4
.github/workflows/lintcommit.yml
vendored
@@ -4,6 +4,10 @@ on:
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
branches:
|
||||
- 'master'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
lint-commits:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user