Skip to content

Commit

Permalink
Merge pull request #1730 from schemacrawler/codeql
Browse files Browse the repository at this point in the history
Add CodeQL workflow
  • Loading branch information
sualeh authored Nov 7, 2024
2 parents aa505bd + 7b9c0e2 commit 112243b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
17 changes: 0 additions & 17 deletions .github/codeql/codeql-config.yml

This file was deleted.

31 changes: 25 additions & 6 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,36 @@ jobs:
security-events: write

steps:
- id: checkout-repo
name: Checkout repository
uses: actions/checkout@v4
# SETUP BUILD ENVIRONMENT
- id: prepare-maven-build
name: Prepare Maven build
uses: sualeh/[email protected]
with:
java-version: 8
- id: install-graphviz
name: Install Graphviz
uses: sualeh/[email protected]

# INIT CODEQL
- id: init-codeql
name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java
# config-file: .github/codeql/codeql-config.yml

# BUILD AND TEST
- id: build-test
name: Build all modules and run tests
shell: bash
run: |
# Build
mvn \
--no-transfer-progress \
--batch-mode \
-DskipTests \
clean package
# ANALYZE
- id: perform-codeql-analysis
name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Expand All @@ -43,6 +62,6 @@ jobs:
name: Upload CodeQL results
uses: actions/upload-artifact@v4
with:
name: codeql-results
path: ./codeql-results
name: java_sarif
path: .results/java.sarif
retention-days: 5

0 comments on commit 112243b

Please sign in to comment.