From 25b15c597267930e38ec55cd40d8c6256436551a Mon Sep 17 00:00:00 2001 From: Zecheng Zhang Date: Thu, 30 Oct 2025 14:41:56 -0700 Subject: [PATCH] Potential fix for code scanning alert no. 1: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .github/workflows/pre-commit.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index a154090..9c8fe4a 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,4 +1,6 @@ name: Pre Commit Check +permissions: + contents: read "on": push: