Skip to content

Commit

Permalink
Try getting CodeQL to use Java 21 for the main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvest committed Jun 30, 2024
1 parent 859241a commit d44c43f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/codeql-legacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "CodeQL Legacy"

on:
push:
branches: [ "1.0", "2.0", "2.1", "2.2", "2.3", "2.4", "2.4.1", "2.4.2", "3.0", "3.0.1", "3.1" ]
schedule:
- cron: "42 11 * * 6"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ java ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"
8 changes: 7 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "CodeQL"

on:
push:
branches: [ "main", "1.0", "2.0", "2.1", "2.2", "2.3", "2.4", "2.4.1", "2.4.2", "3.0", "3.0.1", "3.1" ]
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
Expand All @@ -25,6 +25,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/[email protected]
- name: Set up Java
uses: actions/[email protected]
with:
java-version: '21'
distribution: 'zulu'

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down

0 comments on commit d44c43f

Please sign in to comment.