mirror of
https://github.com/neovim/neovim.git
synced 2026-03-29 11:52:04 +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:
3
.github/workflows/optional.yml
vendored
3
.github/workflows/optional.yml
vendored
@@ -4,6 +4,9 @@ on:
|
||||
types: [labeled, opened, synchronize, reopened]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
Reference in New Issue
Block a user