Skip to content

Commit

Permalink
Update CodeQL workflow to use latest CLI binaries and cache database (T…
Browse files Browse the repository at this point in the history
…eamUltroid#431)

* Update CodeQL workflow to use latest CLI binaries and cache database

Update CodeQL workflow to use latest CLI binaries and cache database

- Specify the use of the latest CodeQL CLI binaries version v2.15.3 for both initialization and analysis steps.

* 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.
  • Loading branch information
Dev-Yoko committed May 13, 2024
1 parent d9838a0 commit 4264383
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: CodeQL Analysis

on:
push:
# ignore dependabot branches on push -> https://github.com/microsoft/binskim/issues/425#issuecomment-893373709
branches-ignore:
- 'dependabot/**'
pull_request:
branches: [ '**' ]
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
Expand All @@ -14,14 +14,22 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

steps:
- 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
languages: 'python'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2

0 comments on commit 4264383

Please sign in to comment.