From b3304f621c7134d73ae37f00b92fc940458cea28 Mon Sep 17 00:00:00 2001 From: Erik van Brakel Date: Tue, 6 Feb 2024 14:11:57 +0100 Subject: [PATCH 1/3] Update action versions --- .github/workflows/release.yml | 12 ++++++------ .github/workflows/tests.yml | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b9a7173..b648de94 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,12 +7,12 @@ on: jobs: test: name: Tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up JDK 8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 8 - name: Maven Package @@ -43,14 +43,14 @@ jobs: release: needs: test - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Check out Git repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Java and Maven - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 8 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 77e04b41..e51cbd1e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,12 +6,12 @@ jobs: test: name: Tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up JDK 8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 8 From 606c836c2df5edee308d65bc962f537fa32c1747 Mon Sep 17 00:00:00 2001 From: Erik van Brakel Date: Tue, 6 Feb 2024 14:12:29 +0100 Subject: [PATCH 2/3] Narrow down permissions --- .github/workflows/release.yml | 4 ++++ .github/workflows/tests.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b648de94..44c19548 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,10 @@ on: release: types: [ published, edited ] +permissions: + contents: read + pull-requests: write + jobs: test: name: Tests diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e51cbd1e..d073d9af 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,6 +2,10 @@ name: Tests on: [ push, pull_request_target ] +permissions: + contents: read + pull-requests: write + jobs: test: From 23ee7f5261822b4ee3a12baa9bc46b47f642030d Mon Sep 17 00:00:00 2001 From: Erik van Brakel Date: Tue, 6 Feb 2024 14:14:28 +0100 Subject: [PATCH 3/3] Set java distribution --- .github/workflows/release.yml | 1 + .github/workflows/tests.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 44c19548..7f2c3f6a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,7 @@ jobs: - name: Set up JDK 8 uses: actions/setup-java@v4 with: + distribution: 'zulu' java-version: 8 - name: Maven Package run: mvn clean install -Dgpg.skip -Dmaven.javadoc.skip -Dmaven.test.skip diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d073d9af..a2c38946 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,6 +17,7 @@ jobs: - name: Set up JDK 8 uses: actions/setup-java@v4 with: + distribution: 'zulu' java-version: 8 - name: Maven Package