From 9046496a7e0edc59c75b121061df61acbe6e37c0 Mon Sep 17 00:00:00 2001 From: oopsio <161714242+oopsio@users.noreply.github.com> Date: Tue, 31 Mar 2026 21:55:22 +0530 Subject: [PATCH] Potential fix for code scanning alert no. 2: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .github/workflows/c-cpp.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 56fba7f..0583907 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -1,5 +1,8 @@ name: C/C++ CI +permissions: + contents: read + on: push: branches: [ "master" ]