build: harden pre-commit.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>
This commit is contained in:
Alex 2022-09-19 23:30:11 +02:00
parent 3772150267
commit 0d3a92ace6

View File

@ -6,8 +6,14 @@ on:
- master
pull_request:
permissions:
contents: read
jobs:
pre-commit:
permissions:
contents: write # to push back fixes to PR branch (pre-commit/action)
runs-on: ubuntu-20.04
steps: