Skip to content

Commit b7e0119

Browse files
chore: Enable codeql action (#917)
This action runs GitHub's industry-leading semantic code analysis engine, CodeQL, against a repository's source code to find security vulnerabilities. https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-with-codeql https://github.com/ossf/scorecard/blob/main/docs/checks.md#sast Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
1 parent 239c2a9 commit b7e0119

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "Code Scanning - Action"
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
CodeQL-Build:
8+
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
# required for all workflows
13+
security-events: write
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
# Initializes the CodeQL tools for scanning.
20+
- name: Initialize CodeQL
21+
uses: github/codeql-action/init@v2
22+
# Override language selection by uncommenting this and choosing your languages
23+
# with:
24+
# languages: go, javascript, csharp, python, cpp, java
25+
26+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
27+
# If this step fails, then you should remove it and run the build manually (see below).
28+
- name: Autobuild
29+
uses: github/codeql-action/autobuild@v2
30+
31+
# ℹ️ Command-line programs to run using the OS shell.
32+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
33+
34+
# ✏️ If the Autobuild fails above, remove it and uncomment the following
35+
# three lines and modify them (or add more) to build your code if your
36+
# project uses a compiled language
37+
38+
#- run: |
39+
# make bootstrap
40+
# make release
41+
42+
- name: Perform CodeQL Analysis
43+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)