Skip to content

Commit

Permalink
Resolve deprecation issue by upgrading to CodeQL Action v2
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Dev-Yoko authored Dec 13, 2023
1 parent c51a2dc commit 58d2090
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 58d2090

Please sign in to comment.