Skip to content

Commit

Permalink
Added github action (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrAlexD committed Jan 16, 2024
1 parent 576eebc commit 7b903e0
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Download and run codeQL

on:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'

jobs:
download_and_run:
runs-on: ubuntu-latest

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

- name: Download and extract codeQL
run: |
curl -sSLO https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.15.5/codeql-bundle-linux64.tar.gz
tar -xzf codeql-bundle-linux64.tar.gz
- name: Run codeQL
run: |
codeql/codeql test run languages/cpp
5 changes: 5 additions & 0 deletions languages/cpp/doStmt/doStmtTest.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
| doStmtCode.cpp:8:5:13:32 | do (...) ... | This is 'do' statement. |
| doStmtCode.cpp:9:9:11:36 | do (...) ... | This is 'do' statement. |
| doStmtCode.cpp:19:5:21:32 | do (...) ... | This is 'do' statement. |
| doStmtCode.cpp:28:5:30:19 | do (...) ... | This is 'do' statement. |
| doStmtCode.cpp:36:5:38:41 | do (...) ... | This is 'do' statement. |
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
| rangeBasedForStmtCode.cpp:4:5:6:5 | for(...:...) ... | This is range based 'for' statement. |
| rangeBasedForStmtCode.cpp:13:5:15:5 | for(...:...) ... | This is range based 'for' statement. |

0 comments on commit 7b903e0

Please sign in to comment.