Skip to content

Commit 5ec0f86

Browse files
committed
Add Code Scanning Action
1 parent 08c02fe commit 5ec0f86

2 files changed

Lines changed: 53 additions & 1 deletion

File tree

.github/workflows/code-ql.yaml

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

.github/workflows/pytest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Python package
22

3-
on: [push]
3+
on: [push, workflow_dispatch]
44

55
jobs:
66
build:

0 commit comments

Comments
 (0)