From bbd60ae13995fef97ada3a53824003fa8ad84a36 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Wed, 28 May 2025 20:10:05 +0300 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 ecc47aa..4b5f07e 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -5,6 +5,9 @@ on: pull_request: types: opened +permissions: + contents: read + jobs: pre-commit: uses: cpp-linter/.github/.github/workflows/pre-commit.yml@main