From 1431b5d5b478e1366f545c1aad11122bfa1cb00e Mon Sep 17 00:00:00 2001 From: Ajay Dhangar <99037494+ajay-dhangar@users.noreply.github.com> Date: Wed, 23 Sep 2026 09:18:56 +0530 Subject: [PATCH] Potential fix for code scanning alert no. 1822: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .github/workflows/gh-stars-to-discord.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/gh-stars-to-discord.yml b/.github/workflows/gh-stars-to-discord.yml index c72f84707..887a28eab 100644 --- a/.github/workflows/gh-stars-to-discord.yml +++ b/.github/workflows/gh-stars-to-discord.yml @@ -5,6 +5,10 @@ on: - cron: '0 * * * *' # Every 1 hour. You can change the frequency as needed. workflow_dispatch: # Allows manual triggering +permissions: + contents: read + actions: write + env: DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} GITHUB_REPOSITORY: 'codeharborhub/codeharborhub.github.io'