From 46505b8e4bd1868448575cfa79e9a021c98f95a4 Mon Sep 17 00:00:00 2001 From: "Md. Zahidul Islam" <50579963+JahidHasanCO@users.noreply.github.com> Date: Thu, 24 Jul 2025 14:53:52 +0600 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/detekt.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/detekt.yml b/.github/workflows/detekt.yml index 0675c55..d587d01 100644 --- a/.github/workflows/detekt.yml +++ b/.github/workflows/detekt.yml @@ -2,6 +2,9 @@ # It scans on push, PR, scheduled cron, or manual trigger. name: Scan with Detekt +permissions: + contents: read + security-events: write on: push: