Skip to content

For the compiled programming language C++, does codeql still require custom steps to ignore specified code files? #3890

@xengine-qyt

Description

@xengine-qyt

Can't it be ignored via the paths-ignore option?
But I'm compiling separately right now. I have already compiled third-party libraries such as jsoncpp and xml2 first, but why are there still warning messages for these libraries in the codeql scan results?

    - name: make pre
      run: | 
          make BUILDTYPE=1

    - name: Initialize CodeQL
      uses: github/codeql-action/init@v4
      with:
        languages: ${{ matrix.language }}
        build-mode: manual 
        queries: security-and-quality
        config-file: .github/workflows/codeql/codeql-config.yml
        
    - name: make check
      run: | 
          make BUILDTYPE=2

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

After I compiled the third-party libraries with BUILDTYPE=1, JSONCPP is not compiled when using BUILDTYPE=2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions