Skip to content

Commit

Permalink
chore(ci): switch to GH CodeQL, allow Trivy to fail (temp) (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Oct 31, 2024
1 parent acab764 commit 1945ed3
Showing 1 changed file with 9 additions and 28 deletions.
37 changes: 9 additions & 28 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,34 +74,6 @@ jobs:
# Only use triggers for PRs
triggers: ${{ github.event_name == 'pull_request' && '("frontend/")' || '' }}

codeql:
name: CodeQL
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v3
- uses: actions/setup-java@v4
with:
distribution: "oracle"
java-version: "21"

- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- run: |
# Exclude file and build
rm InstallCert.java
./mvnw package -DskipTests
ls -la
working-directory: backend
- uses: github/codeql-action/analyze@v3

# https://github.com/marketplace/actions/aqua-security-trivy
trivy:
name: Trivy Security Scan
Expand All @@ -124,3 +96,12 @@ jobs:
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: "trivy-results.sarif"


results:
name: Analysis Results
if: always() && (!failure()) && (!cancelled())
needs: [lint-frontend, tests-backend, tests-frontend] # Include trivy when/if it gets back to being reliable
runs-on: ubuntu-24.04
steps:
- run: echo "Workflow completed successfully!"

0 comments on commit 1945ed3

Please sign in to comment.