Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: advanced CodeQL #99

Merged
merged 3 commits into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 37 additions & 2 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,45 @@ jobs:
with:
sarif_file: "trivy-results.sarif"

codeql:
name: Semantic Code Analysis
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
packages: read
security-events: write
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v3
with:
languages: javascript,java

# Autobuild failed for Java, so building manually
- name: Set up JDK 17 and Caching maven dependencies
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
cache: "maven"
server-id: "github"

# Java builds
- name: Build Core
working-directory: core
run: mvn clean package install -DskipTests -Dtests.skip=true

- name: Build Spring
working-directory: spring
run: mvn clean package -DskipTests -Dtests.skip=true

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

results:
name: Analysis Results
# needs: [tests-java, trivy] - uncomment when/if Trivy stops failing (upstream problem)
needs: [tests-java]
# needs: [codeql, tests-java, trivy] - uncomment when/if Trivy stops failing (upstream problem)
needs: [codeql, tests-java]
runs-on: ubuntu-24.04
steps:
- run: echo "Workflow completed successfully!"
Loading