From 3d449ed57919f41a795273a3cd29ec9f6b328529 Mon Sep 17 00:00:00 2001 From: Shiying Chen Date: Tue, 20 Feb 2024 13:27:37 +0800 Subject: [PATCH] Fix CodeQL error: Resource not accessible by integration & Update CodeQL version (#417) --- .github/workflows/codeql.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index fb2b55d4d..ca4c475ec 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -6,6 +6,11 @@ on: schedule: - cron: '0 19 * * 0' +permissions: + actions: read + contents: read + security-events: write + jobs: CodeQL-Build: @@ -18,14 +23,14 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: javascript # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -39,4 +44,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3