File tree Expand file tree Collapse file tree 4 files changed +65
-27
lines changed
Expand file tree Collapse file tree 4 files changed +65
-27
lines changed Original file line number Diff line number Diff line change 1+ name : Build project
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ strategy :
14+ matrix :
15+ java : [17, 21]
16+ name : " Java ${{ matrix.java }} build"
17+ steps :
18+ - name : Checkout project
19+ uses : actions/checkout@v4
20+ - name : Set up Java
21+ uses : actions/setup-java@v4
22+ with :
23+ distribution : " temurin"
24+ java-version : " ${{ matrix.java }}"
25+ cache : " maven"
26+ - name : Verify build
27+ run : mvn -B verify
28+ sonar :
29+ needs : build
30+ if : github.base_ref == 'main' && github.event_name == 'pull_request'
31+ name : Prepare analysis context
32+ uses : WrenSecurity/.github/.github/workflows/sonar-pull-prepare.yml@main
33+ with :
34+ pull_request : ${{ toJSON(github.event.pull_request) }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Trigger Sonar analysis
2+
3+ on :
4+ workflow_run :
5+ workflows :
6+ - Build project
7+ types :
8+ - completed
9+
10+ permissions :
11+ contents : read
12+
13+ jobs :
14+ prepare :
15+ if : github.event.workflow_run.conclusion == 'success'
16+ uses : WrenSecurity/.github/.github/workflows/sonar-prepare.yml@main
17+ name : Prepare analysis context
18+ with :
19+ workflow_run : ${{ toJSON(github.event.workflow_run) }}
20+ trigger :
21+ needs : prepare
22+ if : needs.prepare.outputs.sonar_allowed
23+ name : Trigger Sonar analysis
24+ uses : WrenSecurity/.github/.github/workflows/sonar-maven.yml@main
25+ with :
26+ java_version : 21
27+ project_key : ' WrenSecurity_wrenam'
28+ pull_request : ${{ needs.prepare.outputs.pull_request }}
29+ secrets :
30+ sonar_token : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change 2222 <parent >
2323 <groupId >org.wrensecurity</groupId >
2424 <artifactId >wrensec-parent</artifactId >
25- <version >4.0.2 </version >
25+ <version >4.1.1 </version >
2626 <relativePath />
2727 </parent >
2828
You can’t perform that action at this time.
0 commit comments