Skip to content

Commit

Permalink
Update various GitHub Actions for security updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chabala committed Oct 13, 2024
1 parent 3e74c25 commit aab23e3
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Check out repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 'Set up Java 8'
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 8
Expand All @@ -27,7 +27,7 @@ jobs:
mvn -V --batch-mode verify jacoco:report
- name: 'Upload directory to pass to next job'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build
path: .
Expand All @@ -49,14 +49,19 @@ jobs:
if: needs.coveralls-pre-check.outputs.HAVE_REPO_TOKEN == 'true'
runs-on: ubuntu-latest
steps:
- name: 'Check out repository'
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 'Restore directory from build'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build
path: .

- name: 'Set up Java 8'
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 8
Expand Down Expand Up @@ -86,21 +91,26 @@ jobs:
if: needs.sonar-pre-check.outputs.HAVE_SONAR_TOKEN == 'true'
runs-on: ubuntu-latest
steps:
- name: 'Check out repository'
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 'Restore directory from build'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build
path: .

- name: 'Set up Java 17'
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
cache: 'maven'

- name: 'Cache SonarCloud packages'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
Expand Down

0 comments on commit aab23e3

Please sign in to comment.