Commit 574ce38
authored
feat(ci): added codeql scanning workflow (#4462)
Codeql to run on pull_requests and push to cover both normal and unusual
changes
# What does this PR do?
Adding codeql scans to avoid command injection and [pwn
request](https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/)
issues
Design:
- Runs only `actions` language checks for speed, extendable in case
javascript type actions need to be scanned
- Runs only if workflow files are changed
- Only runs the tests on main branch pushes/PRs
Having issues will not fail the runs, only updates security findings, it
is possible to make this specifically gating to merge through a Branch
Protection Rule with the following option:
<img width="1744" height="522" alt="image"
src="https://github.com/user-attachments/assets/cf5f5abe-fddf-4590-9eca-fd325b54f070"
/>
<img width="1758" height="192" alt="image"
src="https://github.com/user-attachments/assets/d5e9835d-5e5e-4e72-9087-b3434ef7c260"
/>
Appx 1m to run faster than the current slowest job
## Test Plan
See [test pr](gmatuz#1 )1 parent e59a167 commit 574ce38
2 files changed
+47
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
0 commit comments