Skip to content

Commit

Permalink
Fixed CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
dutor committed Aug 15, 2024
1 parent cdeab59 commit 0fc8f83
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 79 deletions.
8 changes: 8 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: 'CodeQL config'

paths:
- 'src'


queries:
- uses: security-and-quality
69 changes: 0 additions & 69 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

11 changes: 2 additions & 9 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,10 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
working-directory: build/
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
config-file: ./.github/codeql/codeql-config.yml

- name: CMake
id: cmake
Expand All @@ -88,7 +82,7 @@ jobs:
-DCMAKE_C_COMPILER=$TOOLSET_GCC_DIR/bin/gcc \
-DNEBULA_USE_LINKER=gold \
-DCMAKE_BUILD_TYPE=Debug \
-DENABLE_TESTING=on \
-DENABLE_TESTING=OFF \
-GNinja \
-B build
- name: Make
Expand All @@ -102,4 +96,3 @@ jobs:
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
working-directory: build/
2 changes: 1 addition & 1 deletion src/graph/context/Result.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Result final {
static const Result& EmptyResult();
static const std::vector<Result>& EmptyResultList();

std::shared_ptr<Value> valuePtr() const {
const std::shared_ptr<Value> valuePtr() const {
return core_.value;
}

Expand Down

0 comments on commit 0fc8f83

Please sign in to comment.