File tree Expand file tree Collapse file tree 4 files changed +23
-23
lines changed
Expand file tree Collapse file tree 4 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ name: CodeQL Example02 Java
22
33
44on :
5- push :
6- branches : [" main" ]
5+ # push:
6+ # branches: [ main ]
77
8- # pull_request:
9- # branches: [" main" ]
8+ pull_request :
9+ branches : [ main ]
1010
1111jobs :
1212 Container_Example02_Java :
13- runs-on : ' GitHub_Jack_PowerRunner '
13+ runs-on : ' Ubuntu-latest '
1414 permissions :
1515 actions : read
1616 contents : read
2323
2424 container :
2525 image : openjdk:8
26- options : --cpus 5 -- user root
26+ options : --user root
2727
2828
2929 steps :
Original file line number Diff line number Diff line change 11name : CodeQL Example03 Csharp
22
33on :
4- push :
5- branches : [ main ]
6- # pull_request:
4+ # push:
75 # branches: [ main ]
86
7+ pull_request :
8+ branches : [ main ]
9+
910jobs :
1011 Container_Example03_Csharp :
11- runs-on : ' GitHub_Jack_PowerRunner '
12+ runs-on : ' Ubuntu-latest '
1213 permissions :
1314 actions : read
1415 contents : read
2122
2223 container :
2324 image : mcr.microsoft.com/dotnet/aspnet:7.0
24- options : --cpus 5
25+ # options: --cpu 2
2526
2627 steps :
2728 - name : Checkout repository
Original file line number Diff line number Diff line change 11name : CodeQL Example04 Direct Dockerpull and Scan
22
33on :
4- push :
5- branches : [ main ]
6-
7- # pull_request:
4+ # push:
85 # branches: [ main ]
6+
7+ pull_request :
8+ branches : [ main ]
99
1010jobs :
1111 Container_Example04_DockerBuild_and_Scan :
1212 name : Analyze
13- runs-on : ' GitHub_Jack_PowerRunner '
13+ runs-on : ' Ubuntu-latest '
1414 permissions :
1515 actions : read
1616 contents : read
Original file line number Diff line number Diff line change 11name : CodeQL Example01 JavaScript
22
33on :
4- push :
5- branches : ["main"]
6-
7- # pull_request:
8- # branches: ["main"]
4+ # push:
5+ # branches: [ main ]
96
7+ pull_request :
8+ branches : [ main ]
109jobs :
1110 Container_Example01_JavaScript :
12- runs-on : " GitHub_Jack_PowerRunner "
11+ runs-on : ' Ubuntu-latest '
1312 permissions :
1413 actions : read
1514 contents : read
2221
2322 container :
2423 image : node:18
25- options : --cpus 5 -- user root
24+ options : --user root
2625
2726 steps :
2827 - name : Checkout repository
You can’t perform that action at this time.
0 commit comments