-
Notifications
You must be signed in to change notification settings - Fork 18
71 lines (61 loc) · 2.08 KB
/
codeql-analysis.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: "Code Scanning - Action"
on:
push:
branches: [ master ]
paths-ignore:
- '.github/**'
- '**.md'
- '**.yml'
- '**.json'
- 'LICENSE'
- '.gitignore'
pull_request:
branches: [ master ]
paths-ignore:
- '.github/**'
- '**.md'
- '**.yml'
- '**.json'
- 'LICENSE'
- '.gitignore'
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '30 1 * * 0'
jobs:
CodeQL-Build:
# If you're only analyzing JavaScript or Python, CodeQL runs on ubuntu-latest, windows-latest, and macos-latest.
# If you're analyzing C/C++, C#, Go, or Java, CodeQL runs on ubuntu-latest, windows-2019, and macos-latest.
runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: write
# only required for workflows in private repositories
actions: read
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
with:
languages: python
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Package
run: |
cp dongtai_agent_python/config-example.json dongtai_agent_python/config.json
python setup.py sdist
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1