[CI] set token permissions for pre-commit CI job (#17729)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Russell Bryant 2025-05-13 09:38:30 -04:00 committed by GitHub
parent 54e467e6f8
commit 00b14e0f16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,6 +5,9 @@ on:
push:
branches: [main]
permissions:
contents: read
jobs:
pre-commit:
runs-on: ubuntu-latest