Skip to content

paths-ignore and monorepo 'excluding' noisy #21013

@indy-singh

Description

@indy-singh

We are using this:-

    - uses: github/codeql-action/init@v4
      with:
        languages: csharp
        build-mode: none
        debug: true
        config: |
          paths: 
            - '/src/${{needs.pr-plan.outputs.app_changed}}/**'
          paths-ignore:
            - '/src/${{needs.pr-plan.outputs.app_changed}}/test/**'
      env:
        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Inside a monorepo (1.4 million LOC across 19k files) and we find that the output from the action is dominated by lines like:-

2025-12-10T23:51:12.7256172Z [2025-12-10 23:49:15] [build-stdout] [001] Excluding '/home/runner/work/world/world/src/Services/app/Web/Mappers/ParametersMapper.cs'
2025-12-10T23:51:12.7256705Z [2025-12-10 23:49:15] [build-stdout] [001] Excluding '/home/runner/work/world/world/src/Services/app/Web/Mappers/ProductResultMapperHelper.cs'
2025-12-10T23:51:12.7257028Z [2025-12-10 23:49:15] [build-stdout] [001] Excluding '/home/runner/work/world/world/src/Services/app/Web/Mappers/CopyMapper.cs'
2025-12-10T23:51:12.7257352Z [2025-12-10 23:49:15] [build-stdout] [001] Excluding '/home/runner/work/world/world/src/Services/app/Web/Mappers/FinanceMapper.cs'
2025-12-10T23:51:12.7257716Z [2025-12-10 23:49:15] [build-stdout] [001] Excluding '/home/runner/work/world/world/src/Services/app/Web/Mappers/DefaultCostBreakdown.cs'
2025-12-10T23:51:12.7258045Z [2025-12-10 23:49:15] [build-stdout] [001] Excluding '/home/runner/work/world/world/src/Services/app/Web/Mappers/SelectImageLink.cs'
2025-12-10T23:51:12.7258401Z [2025-12-10 23:49:15] [build-stdout] [001] Excluding '/home/runner/work/world/world/src/Services/app/Web/Mappers/CostBreakDownMapper.cs'
2025-12-10T23:51:12.7258788Z [2025-12-10 23:49:15] [build-stdout] [001] Excluding '/home/runner/work/world/world/src/Services/app/Web/Mappers/AlliumVehicleRequestMapper.cs'
2025-12-10T23:51:12.7259158Z [2025-12-10 23:49:15] [build-stdout] [001] Excluding '/home/runner/work/world/world/src/Services/app/Web/Mappers/LexusNotificationMapper.cs'
2025-12-10T23:51:12.7259517Z [2025-12-10 23:49:15] [build-stdout] [001] Excluding '/home/runner/work/world/world/src/Services/app/Web/Mappers/ProductRequestBuilder.cs'
2025-12-10T23:51:12.7259875Z [2025-12-10 23:49:15] [build-stdout] [001] Excluding '/home/runner/work/world/world/src/Services/app/Web/Mappers/VehicleGroupTypeMapper.cs'

It's about 100,000 lines of "Excluding" and it generates a raw log file of about 80-100MB. Which is a lot to scroll through when you are debugging CodeQL issues.

logger.LogInfo($"Excluding '{f.FileInfo.FullName}'");

Is there a chance we could get it as a artefact on the upload? And not write to Actions output?

Cheers,
Indy

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions