From b4b7d609ecfcc301861d3fa20f508e93bb04eb9d Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Thu, 15 Jan 2026 17:25:11 -0800 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index b6b21f1..733814c 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,5 +1,8 @@ name: pre-commit +permissions: + contents: read + on: pull_request: branches: ["main"]