Skip to content

Commit 0b02e04

Browse files
committed
AIO Build Default Runners
1 parent 35c770a commit 0b02e04

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
lines changed

.github/workflows/CodeQL_AIO_Native_Runner_Example.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ jobs:
5858
uses: github/codeql-action/analyze@v2
5959

6060
Example02_Java:
61-
needs: Example01_JavaScript
6261
runs-on: Ubuntu-latest
6362
permissions:
6463
actions: read
@@ -96,7 +95,6 @@ jobs:
9695
uses: github/codeql-action/analyze@v2
9796

9897
Example03_Csharp:
99-
needs: [Example01_JavaScript, Example02_Java]
10098
runs-on: windows-latest
10199
permissions:
102100
actions: read
@@ -134,7 +132,6 @@ jobs:
134132
uses: github/codeql-action/analyze@v2
135133

136134
Example04_Python:
137-
needs: [Example01_JavaScript, Example02_Java, Example03_Csharp]
138135
runs-on: ubuntu-latest
139136
permissions:
140137
actions: read

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,42 @@ When your workflow runs, GitHub Actions will start a container using the specifi
8181
- [Running Jobs in a Container](https://docs.github.com/en/actions/using-jobs/running-jobs-in-a-container)
8282
8383
84+
### Benchmarks based on the examples within this repo
85+
> #### CodeQL code scanning for containerized applications using [GitHub Default Runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners)
86+
87+
| Example | Programming Language| Scan completion Time |
88+
|---------------------|-------------------- |---------------------------------- |
89+
|Example01_JavaScript | JavaScript | 4 Minutes and 49 Seconds |
90+
|Example01_Java | Java | 2 Minutes and 34 seconds |
91+
|Example01_C# | C# | 7 Minutes and 47 Seconds |
92+
|Example01_Python | Python | 4 Minutes and 39 Seconds |
93+
94+
> #### CodeQL code scanning for containerized applications using [GitHub Larger Runners]([https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners](https://docs.github.com/en/enterprise-cloud@latest/actions/using-github-hosted-runners/about-larger-runners))
95+
96+
| Example | Programming Language| Scan completion Time |
97+
|---------------------|-------------------- |---------------------- |
98+
|Example01_JavaScript | JavaScript | 3 Minutes 49 Seconds |
99+
|Example01_Java | Java | 1 Minute 58 Seconds |
100+
|Example01_C# | C# | 3 Minutes and 59 Seconds |
101+
|Example01_Python | Python | 2 Minutes and 24 Seconds |
102+
103+
##### Larger Runner Specs and Resources Assigned to the container for each example:
104+
| CPU Cores | RAM | Storage | Base OS | | CPU | RAM | Storage | Base OS |
105+
|-----------|-----|---------|--------- |---|-----|------------------|-----------------|------------------------------------------- |
106+
|8 cores |32GB |300 SSD |Ubuntu 22.04| | 5 |Container Default|Container Default|Review example workflows for container image |
107+
108+
109+
> #### CodeQL code scanning for containerized applications - Coverting the application to run natively within a GitHub default Runner rather than within the container.
110+
111+
| Example | Programming Language| Scan completion Time |
112+
|---------------------|-------------------- |---------------------- |
113+
|Example01_JavaScript | JavaScript | 5 Minutes and 10 Seconds |
114+
|Example01_Java | Java | 2 Minutes and 04 seconds |
115+
|Example01_C# | C# | 7 Minutes and 47 Seconds |
116+
|Example01_Python | Python | 4 Minutes and 39 Seconds |
117+
118+
119+
84120
### Considerations when using CodeQL to scan containerized applications
85121
Running a GitHub Action in a container can have both positive and negative performance impacts compared to running the action on the base runner.
86122

0 commit comments

Comments
 (0)