Skip to content

Commit 5306261

Browse files
authored
Add codeql workflow (#5743)
* Adding codeql workflow Signed-off-by: Ryan West <rwest2@apple.com> * Adding empty line Signed-off-by: Ryan West <rwest2@apple.com> * Adding empty line Signed-off-by: Ryan West <rwest2@apple.com> * Updating to format markdown table Signed-off-by: Ryan West <rwest2@apple.com> * Fixing formatting Signed-off-by: Ryan West <rwest2@apple.com> --------- Signed-off-by: Ryan West <rwest2@apple.com>
1 parent 1b867c6 commit 5306261

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows-doc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ test-build-deploy.yml specifies a workflow that runs all Cortex continuous integ
1919
| test | Runs units tests on Cassandra testing framework. | CI |
2020
| integration-configs-db | Integration tests for database configurations. | CI |
2121
| integration | Runs integration tests after upgrading golang, pulling necessary docker images and downloading necessary module dependencies. | CI |
22+
| Security/CodeQL | CodeQL is a semantic code analysis engine used for automating security checks. | CI |
2223
| build | Builds and saves an up-to-date Cortex image and website. | CI |
2324
| deploy_website | Deploys the latest version of Cortex website to gh-pages branch. Triggered within workflow. | CD |
2425
| deploy | Deploys the latest Cortex image. | CD |

.github/workflows/test-build-deploy.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,26 @@ jobs:
5656
- name: Run Tests
5757
run: make BUILD_IN_CONTAINER=false test
5858

59+
security:
60+
name: CodeQL
61+
runs-on: ubuntu-20.04
62+
steps:
63+
- name: Checkout repository
64+
uses: actions/checkout@v4
65+
66+
# Initializes the CodeQL tools for scanning.
67+
- name: Initialize CodeQL
68+
uses: github/codeql-action/init@v3
69+
with:
70+
languages: go
71+
72+
- name: Autobuild
73+
uses: github/codeql-action/autobuild@v3
74+
75+
- name: Perform CodeQL Analysis
76+
uses: github/codeql-action/analyze@v3
77+
78+
5979
build:
6080
runs-on: ubuntu-20.04
6181
container:

0 commit comments

Comments
 (0)