Skip to content

Commit c5c6e74

Browse files
authored
Merge pull request #194 from nanotaboada/feature/github-actions-versions
chore(ci): pin GitHub Actions to specific versions
2 parents 542ffae + e684a03 commit c5c6e74

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

.github/workflows/maven.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ permissions:
88

99
on:
1010
push:
11-
branches: [ master ]
11+
branches: [master]
1212
pull_request:
13-
branches: [ master ]
13+
branches: [master]
1414

1515
env:
1616
JAVA_VERSION: 21
@@ -19,24 +19,24 @@ jobs:
1919
verify:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- name: Checkout repository
23-
uses: actions/checkout@v4
22+
- name: Checkout repository
23+
uses: actions/checkout@v4.2.2
2424

25-
- name: Set up OpenJDK ${{ env.JAVA_VERSION }}
26-
uses: actions/setup-java@v4
27-
with:
28-
java-version: ${{ env.JAVA_VERSION }}
29-
distribution: 'temurin'
30-
cache: 'maven'
25+
- name: Set up OpenJDK ${{ env.JAVA_VERSION }}
26+
uses: actions/setup-java@v4.7.1
27+
with:
28+
java-version: ${{ env.JAVA_VERSION }}
29+
distribution: "temurin"
30+
cache: "maven"
3131

32-
- name: Compile and verify with Maven
33-
run: mvn verify --file pom.xml
32+
- name: Compile and verify with Maven
33+
run: mvn verify --file pom.xml
3434

35-
- name: Upload JaCoCo coverage report artifact
36-
uses: actions/upload-artifact@v4
37-
with:
38-
name: jacoco.xml
39-
path: ./target/site/jacoco/jacoco.xml
35+
- name: Upload JaCoCo coverage report artifact
36+
uses: actions/upload-artifact@v4.6.2
37+
with:
38+
name: jacoco.xml
39+
path: ./target/site/jacoco/jacoco.xml
4040

4141
coverage:
4242
needs: verify
@@ -45,24 +45,24 @@ jobs:
4545
matrix:
4646
service: [codecov, codacy]
4747
steps:
48-
- name: Checkout repository
49-
uses: actions/checkout@v4
48+
- name: Checkout repository
49+
uses: actions/checkout@v4.2.2
5050

51-
- name: Download JaCoCo coverage report artifact
52-
uses: actions/download-artifact@v4
53-
with:
54-
name: jacoco.xml
51+
- name: Download JaCoCo coverage report artifact
52+
uses: actions/download-artifact@v4.3.0
53+
with:
54+
name: jacoco.xml
5555

56-
- name: Upload JaCoCo coverage report to Codecov
57-
if: matrix.service == 'codecov'
58-
uses: codecov/codecov-action@v5
59-
with:
60-
token: ${{ secrets.CODECOV_TOKEN }}
61-
files: jacoco.xml
56+
- name: Upload JaCoCo coverage report to Codecov
57+
if: matrix.service == 'codecov'
58+
uses: codecov/codecov-action@v5.4.3
59+
with:
60+
token: ${{ secrets.CODECOV_TOKEN }}
61+
files: jacoco.xml
6262

63-
- name: Upload JaCoCo coverage report to Codacy
64-
if: matrix.service == 'codacy'
65-
uses: codacy/codacy-coverage-reporter-action@v1
66-
with:
67-
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
68-
force-coverage-parser: jacoco -r jacoco.xml
63+
- name: Upload JaCoCo coverage report to Codacy
64+
if: matrix.service == 'codacy'
65+
uses: codacy/codacy-coverage-reporter-action@v1.3.0
66+
with:
67+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
68+
force-coverage-parser: jacoco -r jacoco.xml

0 commit comments

Comments
 (0)