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
12 changes: 6 additions & 6 deletions .github/workflows/code-path-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ name: Notify Code Path Changes

on:
pull_request_target:
types: [opened, synchronize]
types: [ opened, synchronize ]
paths:
- '**'

permissions:
contents: read

env:
OAUTH2_CLIENT_ID: ${{ secrets.OAUTH2_CLIENT_ID }}
OAUTH2_CLIENT_SECRET: ${{ secrets.OAUTH2_CLIENT_SECRET }}
Expand All @@ -14,18 +17,15 @@ env:
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

permissions:
contents: read

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v5

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: '18'

Expand Down
82 changes: 47 additions & 35 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,60 @@
name: "CodeQL"
name: CodeQL

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
branches: [ 'master' ]
schedule:
- cron: '0 3 * * 1'

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 --file extra/pom.xml

- 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
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 21

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

- 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 package --file extra/pom.xml

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: '/language:${{ matrix.language }}'
9 changes: 6 additions & 3 deletions .github/workflows/cross-repo-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@ name: Cross-repo Issue Creation

on:
pull_request_target:
types: [closed]
types: [ closed ]
branches:
- "master"
- 'master'

permissions:
contents: read

jobs:
cross-repo:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
uses: tibdex/github-app-token@v2.1.0
with:
app_id: ${{ secrets.XREPO_APP_ID }}
private_key: ${{ secrets.XREPO_PEM }}
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/docker-image-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
tags:
- '*'

permissions:
contents: read
packages: write

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand All @@ -13,13 +17,10 @@ jobs:
build:
name: Publish Docker image for new tag/release
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
java: [ 21 ]
dockerfile-path: [Dockerfile, Dockerfile-modules]
dockerfile-path: [ Dockerfile, Dockerfile-modules ]
include:
- dockerfile-path: Dockerfile
build-cmd: mvn clean package -Dcheckstyle.skip -Dmaven.test.skip=true
Expand All @@ -30,10 +31,10 @@ jobs:
package-name: ghcr.io/${{ github.repository }}-bundle
steps:
- name: Check out Repository
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v5
with:
distribution: 'temurin'
cache: 'maven'
Expand All @@ -56,13 +57,13 @@ jobs:
images: ${{ matrix.package-name }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.dockerfile-path }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/issue_prioritization.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Issue tracking

on:
issues:
types:
- opened
- pinned

jobs:
track_issue:
runs-on: ubuntu-latest
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/pr-functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
types:
- created

permissions:
contents: read
actions: read
checks: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -20,10 +25,10 @@ jobs:
java: [ 21 ]

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

- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v5
with:
distribution: 'temurin'
cache: 'maven'
Expand All @@ -42,7 +47,7 @@ jobs:

- name: Emitting run result of functional test
if: always()
uses: dorny/test-reporter@v2.1.1
uses: dorny/test-reporter@v2.5.0
with:
name: 'Functional tests'
working-directory: 'target/failsafe-reports'
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/pr-java-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
types:
- created

permissions:
contents: read
actions: read
checks: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -20,10 +25,10 @@ jobs:
java: [ 21 ]

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

- name: Set up JDK
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
cache: 'maven'
Expand All @@ -32,12 +37,3 @@ jobs:

- name: Build with Maven
run: mvn -B package --file extra/pom.xml

- name: Publish JUnit Report
uses: mikepenz/action-junit-report@v5
if: always()
with:
check_name: 'JUnit Test Report'
report_paths: '**/target/surefire-reports/TEST-*.xml'
fail_on_failure: true
annotate_only: true
11 changes: 8 additions & 3 deletions .github/workflows/pr-module-functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
types:
- created

permissions:
contents: read
actions: read
checks: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -20,10 +25,10 @@ jobs:
java: [ 21 ]

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

- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v5
with:
distribution: 'temurin'
cache: 'maven'
Expand All @@ -46,7 +51,7 @@ jobs:

- name: Emitting run result of functional test
if: always()
uses: dorny/test-reporter@v2.1.1
uses: dorny/test-reporter@v2.5.0
with:
name: 'Module functional tests'
working-directory: 'target/failsafe-reports'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-asset-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish release .jar

on:
workflow_run:
workflows: [Publish release]
workflows: [ Publish release ]
types:
- completed

Expand All @@ -14,9 +14,9 @@ jobs:
matrix:
java: [ 21 ]
steps:
- uses: actions/checkout@v4
- 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
9 changes: 7 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,22 @@ on:
tags:
- '*'

permissions:
contents: read

jobs:
update_release_draft:
name: Publish release with notes
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Create and publish release
uses: release-drafter/release-drafter@v5
uses: release-drafter/release-drafter@v6
with:
config-name: release-drafter-config.yml
publish: true
name: "v${{ github.ref_name }}"
name: 'v${{ github.ref_name }}'
tag: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading
Loading