From 58d209048d98f4f8be615afa4ecae7d8be418673 Mon Sep 17 00:00:00 2001 From: Yoko <150261719+Dev-Yoko@users.noreply.github.com> Date: Wed, 13 Dec 2023 17:20:15 +0530 Subject: [PATCH] Resolve deprecation issue by upgrading to CodeQL Action v2 Resolve deprecation issue by upgrading to CodeQL Action v2 - Updated 'Initialize CodeQL' and 'Perform CodeQL Analysis' steps to use version 2 of the CodeQL Action. - Removed deprecated version references and ensured compatibility with the latest GitHub Actions specifications. --- .github/workflows/codeql-analysis.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 49e5eeaf09..98bacbc7ef 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -19,13 +19,17 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Cache CodeQL database + uses: actions/cache@v2 + with: + path: ~/.codeql + key: ${{ runner.os }}-codeql-${{ hashFiles('**/qlpack.yml') }} + restore-keys: ${{ runner.os }}-codeql- + - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 with: languages: 'python' - tools: github/codeql-cli-binaries@v2.15.3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 - with: - tools: github/codeql-cli-binaries@v2.15.3 + uses: github/codeql-action/analyze@v2