Skip to content

Commit

Permalink
CI : add CodeQL workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslepoix committed Nov 9, 2022
1 parent 20151f6 commit d9b83f7
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/test_codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test CodeQL

on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
run:
runs-on: ubuntu-latest

permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]

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

- name: Init
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality

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

- name: Analyze
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
1 change: 0 additions & 1 deletion src/domain/geometrics/relation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ PolygonPoint cast(PolygonSegment const a) {
case PolygonSegment::IN: return PolygonPoint::IN;
case PolygonSegment::ON: return PolygonPoint::ON;
case PolygonSegment::OUT: return PolygonPoint::OUT;
default: abort();
}
}

Expand Down

0 comments on commit d9b83f7

Please sign in to comment.