@@ -10,31 +10,36 @@ jobs:
1010 runs-on : ubuntu-latest
1111
1212 steps :
13- - uses : actions/checkout@v3
13+ - name : Harden the runner (Audit all outbound calls)
14+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
15+ with :
16+ egress-policy : audit
17+
18+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1419 with :
1520 fetch-depth : 0
1621
1722 - name : Set up JDK 17
18- uses : actions/setup-java@v3
23+ uses : actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3.14.1
1924 with :
2025 java-version : 17
2126 distribution : ' zulu' # Alternative distribution options are available.
2227
2328 - name : Set up Maven
24- uses : stCarolas/setup-maven@v4.5
29+ uses : stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5
2530 with :
2631 maven-version : 3.8.6
2732
2833 - name : Cache local Maven repository
29- uses : actions/cache@v3
34+ uses : actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3.5.0
3035 with :
3136 path : ~/.m2/repository
3237 key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3338 restore-keys : |
3439 ${{ runner.os }}-maven-
3540
3641 - name : Cache SonarCloud packages
37- uses : actions/cache@v3
42+ uses : actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3.5.0
3843 with :
3944 path : ~/.sonar/cache
4045 key : ${{ runner.os }}-sonar
5964# add: '*.svg'
6065
6166 - name : Upload coverage report
62- uses : actions/upload-artifact@v3
67+ uses : actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3.2.1
6368 with :
6469 name : Coverage report
6570 path : |
7176 mvn pmd:cpd
7277
7378 - name : Upload PMD lint report
74- uses : actions/upload-artifact@v3
79+ uses : actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3.2.1
7580 with :
7681 name : PMD lint report
7782 path : |
8287 run : mvn checkstyle:checkstyle
8388
8489 - name : Upload Checklist lint report
85- uses : actions/upload-artifact@v3
90+ uses : actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3.2.1
8691 with :
8792 name : Checklist lint report
8893 path : |
9398 env :
9499 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
95100 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
96- run : mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=rudderlabs_rudder-sdk-java
101+ run : mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=rudderlabs_rudder-sdk-java
0 commit comments