Skip to content

Commit

Permalink
Update github workflows (#366)
Browse files Browse the repository at this point in the history
Use latest github actions.

Fixes:
Analyze (python)
Node.js 16 actions are deprecated.
Please update the following actions to use Node.js 20:
  actions/checkout@v3,
  github/codeql-action/init@v2,
  github/codeql-action/autobuild@v2,
  github/codeql-action/analyze@v2.
For more information see:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Fixes:
CodeQL Action v2 will be deprecated on December 5th, 2024.
Please update all occurrences of the CodeQL Action in your workflow files to v3.
For more information, see
https://github.blog/changelog/2024-01-12-code-scanning-deprecation-of-codeql-action-v2/

Signed-off-by: Sandro Bonazzola <[email protected]>
  • Loading branch information
sandrobonazzola authored Oct 4, 2024
1 parent 5b266fa commit c4d94da
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: pre-commit/[email protected].0
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected].1
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: ${{ github.event_name == 'release' }}
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: ${{ github.event_name == 'workflow_dispatch' }}
with:
ref: ${{ github.event.inputs.ref }}
Expand Down

0 comments on commit c4d94da

Please sign in to comment.