File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 7
7
- uses : actions/checkout@v3
8
8
with :
9
9
fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
10
+ - name : Set up Java 17
11
+ uses : actions/setup-java@v3
12
+ with :
13
+ java-version : 17
14
+ distribution : adopt
10
15
- name : downcase GITHUB_REPOSITORY_OWNER
11
16
run : |
12
17
echo "GITHUB_REPOSITORY_OWNER_DOWNCASE=${GITHUB_REPOSITORY_OWNER,,}" >>${GITHUB_ENV}
19
24
env :
20
25
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
21
26
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
27
+ JAVA_HOME : /usr/lib/jvm/java-17-openjdk-amd64
22
28
# @ end
23
- ---
29
+ ---
Original file line number Diff line number Diff line change 19
19
uses : actions/checkout@v3
20
20
with :
21
21
fetch-depth : 0
22
+ - name : Set up Java 17
23
+ uses : actions/setup-java@v3
24
+ with :
25
+ java-version : 17
26
+ distribution : adopt
22
27
- name : Add GitHub Packages to NuGet config
23
28
env :
24
29
GH_ACCOUNT : ${{ secrets.PAT_USER_READ_PACKAGES }}
25
30
GH_TOKEN : ${{ secrets.PAT_READ_PACKAGES }}
26
31
run : |
27
32
dotnet nuget update source github --username ${GH_ACCOUNT} --password ${GH_TOKEN} --store-password-in-clear-text
28
33
- name : Scan
29
- uses : CoverGo/dotnet-parallel-sonar-scan@v1
34
+ uses : CoverGo/dotnet-parallel-sonar-scan@v1.0.1
30
35
with :
31
36
test-result-artifacts : # @ ",".join(test_result_artifacts)
32
37
# @ if hasattr(scan_code_net,"sonar") :
63
68
# @ end
64
69
env :
65
70
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
71
+ JAVA_HOME : /usr/lib/jvm/java-17-openjdk-amd64
66
72
# @ end
67
73
---
68
74
# @ def generate_scan_code_net_job(scan_code_net, sections):
You can’t perform that action at this time.
0 commit comments