Skip to content

Commit

Permalink
Only compile main sources for code scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcono1234 committed Feb 12, 2022
1 parent e8e7e7e commit 8cfc859
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ jobs:
# Run all security queries and maintainability and reliability queries
queries: +security-and-quality

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java)
# If this step fails, then you should remove it and run the build manually
- name: Autobuild
uses: github/codeql-action/autobuild@v1
# Only compile main sources, but ignore test sources because findings for them might not
# be that relevant (though GitHub security view also allows filtering by source type)
# Can replace this with github/codeql-action/autobuild action to run complete build
- name: Compile sources
run: |
mvn compile
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

0 comments on commit 8cfc859

Please sign in to comment.