Skip to content

Commit

Permalink
github/actione: merge CodeQL workflow into lone's
Browse files Browse the repository at this point in the history
It's easier to deal with when everything is in the same file.
Also take this opportunity to update all CodeQL actions to v3.
  • Loading branch information
matheusmoreira committed Sep 18, 2024
1 parent 444b461 commit e71de3d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 44 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/codeql.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/lone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,32 @@ jobs:

- name: Test lone
run: make test

analyze:
name: CodeQL analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]

steps:
- name: Checkout lone repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Build lone
run: make

- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

0 comments on commit e71de3d

Please sign in to comment.