Skip to content
Merged
Show file tree
Hide file tree
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
76 changes: 42 additions & 34 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,56 @@
name: "CodeQL"
name: CodeQL

on:
push:
branches: [ "master" ]
branches: [ 'master' ]
pull_request:
branches: [ "master" ]
branches: [ 'master' ]
schedule:
- cron: '0 3 * * 1'
Comment thread
Net-burst marked this conversation as resolved.

permissions:
security-events: write
packages: read
actions: read
contents: read

jobs:
analyze:
name: Analyze
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: [ 'java' ]
include:
- language: actions
build-mode: none
- language: java-kotlin
build-mode: manual

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 21

- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- name: Build with Maven
run: mvn -B package

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
with:
category: "/language:${{ matrix.language }}"
- name: Checkout repository
uses: actions/checkout@v5

- name: Set up JDK
if: matrix.language == 'java-kotlin'
uses: actions/setup-java@v5
with:
distribution: 'temurin'
cache: 'maven'
java-version: 25

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}

- name: Build with Maven
if: matrix.build-mode == 'manual'
run: mvn -B compile --file pom.xml

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: '/language:${{ matrix.language }}'
6 changes: 3 additions & 3 deletions .github/workflows/pr-functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:

strategy:
matrix:
java: [ 21 ]
java: [ 25 ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5

- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v5
with:
distribution: 'temurin'
cache: 'maven'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-java-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:

strategy:
matrix:
java: [ 21 ]
java: [ 25 ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5

- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v5
with:
distribution: 'temurin'
cache: 'maven'
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM amazoncorretto:21.0.6-al2023
FROM amazoncorretto:25.0.3-al2023-headless

WORKDIR /app/prebid-cache

Expand Down
Loading
Loading