Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added github action #1

Merged
merged 25 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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. |