From 88434b23483f0778cc409c605dfd5411f8dc4145 Mon Sep 17 00:00:00 2001 From: Dhruva Shaw Date: Mon, 16 Jun 2025 00:23:08 +0530 Subject: [PATCH] Potential fix for code scanning alert no. 19: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Dhruva Shaw --- .github/workflows/prettier-comment-on-pr.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/prettier-comment-on-pr.yml b/.github/workflows/prettier-comment-on-pr.yml index e95075ce..746b236e 100644 --- a/.github/workflows/prettier-comment-on-pr.yml +++ b/.github/workflows/prettier-comment-on-pr.yml @@ -1,5 +1,9 @@ name: Comment on pull request +permissions: + contents: read + pull-requests: write + on: repository_dispatch: types: [prettier-failed-on-pr]