From 1f71c4793298cae9cff24f6c0e47dc3b1f639e8c Mon Sep 17 00:00:00 2001 From: Weihan Li <7604648+WeihanLi@users.noreply.github.com> Date: Sun, 8 Sep 2024 15:11:22 +0800 Subject: [PATCH] Configure permissions for codeql (#1583) fixes codeql action error see details: https://github.com/github/codeql/issues/8843#issuecomment-1108467590 --- .github/workflows/codeql-analysis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index acb160a49..82c9560ce 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,5 +1,10 @@ name: "CodeQL" +permissions: + actions: read + contents: read + security-events: write + on: push: branches: [ master ]