From 3fae47c43a3db472e3d4e1c57a61393b18d583e4 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 6 May 2025 12:15:35 -0400 Subject: [PATCH] [CI] set token permissions for pre-commit CI job Signed-off-by: Russell Bryant Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .github/workflows/pre-commit.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 6ab63a402770..8e694d18134e 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -5,6 +5,9 @@ on: push: branches: [main] +permissions: + contents: read + jobs: pre-commit: runs-on: ubuntu-latest