Skip to content

Commit 6eebc1d

Browse files
committed
add codeql workflow
1 parent 3491b1e commit 6eebc1d

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
2+
name: "Code Scanning - Action"
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
schedule:
10+
# ┌───────────── minute (0 - 59)
11+
# │ ┌───────────── hour (0 - 23)
12+
# │ │ ┌───────────── day of the month (1 - 31)
13+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
14+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
15+
# │ │ │ │ │
16+
# │ │ │ │ │
17+
# │ │ │ │ │
18+
# * * * * *
19+
- cron: '30 1 * * 0'
20+
21+
jobs:
22+
CodeQL-Build:
23+
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
24+
runs-on: ubuntu-latest
25+
26+
permissions:
27+
# required for all workflows
28+
security-events: write
29+
30+
# only required for workflows in private repositories
31+
actions: read
32+
contents: read
33+
34+
steps:
35+
- name: Checkout repository
36+
uses: actions/checkout@v3
37+
38+
# Initializes the CodeQL tools for scanning.
39+
- name: Initialize CodeQL
40+
uses: github/codeql-action/init@v2
41+
# Override language selection by uncommenting this and choosing your languages
42+
# with:
43+
# languages: go, javascript, csharp, python, cpp, java
44+
45+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
46+
# If this step fails, then you should remove it and run the build manually (see below).
47+
- name: Autobuild
48+
uses: github/codeql-action/autobuild@v2
49+
50+
# ℹ️ Command-line programs to run using the OS shell.
51+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
52+
53+
# ✏️ If the Autobuild fails above, remove it and uncomment the following
54+
# three lines and modify them (or add more) to build your code if your
55+
# project uses a compiled language
56+
57+
#- run: |
58+
# make bootstrap
59+
# make release
60+
61+
- name: Perform CodeQL Analysis
62+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)