Skip to content

Commit

Permalink
update codeql config according to latest defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
overheadhunter committed Dec 18, 2023
1 parent 69db553 commit a025451
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ jobs:
analyse:
name: Analyse
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-java@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'zulu'
Expand All @@ -27,7 +32,16 @@ jobs:
uses: github/codeql-action/init@v3
with:
languages: java
- name: Build and Test
config: |
queries:
- uses: security-and-quality
paths:
- src
paths-ignore:
- src/test/go
- name: Build
run: ./mvnw -B install -DskipTests
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v3
with:
category: "/language:java"

0 comments on commit a025451

Please sign in to comment.