diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b9a717..7f2c3f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,16 +4,21 @@ on: release: types: [ published, edited ] +permissions: + contents: read + pull-requests: write + 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: + distribution: 'zulu' java-version: 8 - name: Maven Package run: mvn clean install -Dgpg.skip -Dmaven.javadoc.skip -Dmaven.test.skip @@ -43,14 +48,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 77e04b4..a2c3894 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,17 +2,22 @@ name: Tests on: [ push, pull_request_target ] +permissions: + contents: read + pull-requests: write + 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: + distribution: 'zulu' java-version: 8 - name: Maven Package