From c64b7c5257e704131931a86dfbb6b73dd688ef9a Mon Sep 17 00:00:00 2001 From: Mathew Payne <2772944+GeekMasher@users.noreply.github.com> Date: Mon, 7 Jul 2025 12:34:23 +0100 Subject: [PATCH] Potential fix for code scanning alert no. 3: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .github/workflows/self-action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/self-action.yml b/.github/workflows/self-action.yml index f262333..c915690 100644 --- a/.github/workflows/self-action.yml +++ b/.github/workflows/self-action.yml @@ -5,6 +5,9 @@ on: branches: [ main ] workflow_dispatch: +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest @@ -16,4 +19,3 @@ jobs: uses: ./ with: token: ${{ secrets.GITHUB_TOKEN }} -