Skip to content

Commit 7da78d5

Browse files
committed
Updated to use default runners and default resource settings for the containers.
1 parent abcbf10 commit 7da78d5

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

.github/workflows/CodeQL_Example02_Java.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: CodeQL Example02 Java
22

33

44
on:
5-
push:
6-
branches: ["main"]
5+
# push:
6+
# branches: [ main ]
77

8-
# pull_request:
9-
# branches: ["main"]
8+
pull_request:
9+
branches: [ main ]
1010

1111
jobs:
1212
Container_Example02_Java:
13-
runs-on: 'GitHub_Jack_PowerRunner'
13+
runs-on: 'Ubuntu-latest'
1414
permissions:
1515
actions: read
1616
contents: read
@@ -23,7 +23,7 @@ jobs:
2323

2424
container:
2525
image: openjdk:8
26-
options: --cpus 5 --user root
26+
options: --user root
2727

2828

2929
steps:

.github/workflows/CodeQL_Example03_Csharp.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: CodeQL Example03 Csharp
22

33
on:
4-
push:
5-
branches: [ main ]
6-
# pull_request:
4+
# push:
75
# branches: [ main ]
86

7+
pull_request:
8+
branches: [ main ]
9+
910
jobs:
1011
Container_Example03_Csharp:
11-
runs-on: 'GitHub_Jack_PowerRunner'
12+
runs-on: 'Ubuntu-latest'
1213
permissions:
1314
actions: read
1415
contents: read
@@ -21,7 +22,7 @@ jobs:
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

.github/workflows/CodeQL_Example04_DockerPull_Build_Scan.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
name: CodeQL Example04 Direct Dockerpull and Scan
22

33
on:
4-
push:
5-
branches: [ main ]
6-
7-
# pull_request:
4+
# push:
85
# branches: [ main ]
6+
7+
pull_request:
8+
branches: [ main ]
99

1010
jobs:
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

.github/workflows/codeql_Example01_JavaScript.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
name: CodeQL Example01 JavaScript
22

33
on:
4-
push:
5-
branches: ["main"]
6-
7-
# pull_request:
8-
# branches: ["main"]
4+
# push:
5+
# branches: [ main ]
96

7+
pull_request:
8+
branches: [ main ]
109
jobs:
1110
Container_Example01_JavaScript:
12-
runs-on: "GitHub_Jack_PowerRunner"
11+
runs-on: 'Ubuntu-latest'
1312
permissions:
1413
actions: read
1514
contents: read
@@ -22,7 +21,7 @@ jobs:
2221

2322
container:
2423
image: node:18
25-
options: --cpus 5 --user root
24+
options: --user root
2625

2726
steps:
2827
- name: Checkout repository

0 commit comments

Comments
 (0)