Skip to content

Commit b552223

Browse files
committed
2 parents 617d611 + cf1f4a6 commit b552223

File tree

224 files changed

+5983
-917
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

224 files changed

+5983
-917
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Custom rule
3+
about: Regarding the demand for customized rules and false positives and negatives.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the demand**
11+
A clear and concise description of what the rule is.
12+
13+
14+
**规则概述(Rules Overview)**
15+
16+
17+
**规则背景(Rule Background)**
18+
代码的功能逻辑,按步骤书写。(The functional logic of the code is written in steps.)
19+
20+
21+
**目标问题点(Target Problem Points)**
22+
- 可以按照场景来阐述,比如场景1、场景2这样;(It can be explained by scenario, such as scenario 1 and scenario 2;)
23+
- 每个场景中是第几个步骤可能出现问题,想要解决/检测什么,可以怎么修复,可以结合右边的Case解释。(In each scenario, which step may cause a problem, what you want to solve/detect, and how to fix it. You can explain it in conjunction with the case on the right.)
24+
25+
26+
**错误代码示例(Bad Case)**
27+
28+
29+
**正确代码示例(Good Case)**
30+
31+
32+
**TCA官网上测试项目链接(TCA official website test project link)**
33+
tca.tencent.com
34+
35+
36+
**Additional context**
37+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/docs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ jobs:
2424
- name: Checkout Repo
2525
uses: actions/checkout@v3
2626

27+
# 下载二进制文件
28+
- name: Download Binary Files
29+
run: |
30+
set -ex
31+
pwd
32+
bash ./scripts/base/install_bin.sh
33+
2734
- name: Setup Node 16
2835
uses: actions/setup-node@v3
2936
with:

.github/workflows/push.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,18 @@ jobs:
5050
username: ${{ secrets.DOCKER_HUB_USERNAME }}
5151
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
5252

53-
# 3. 设置 docker 环境
53+
# 3. 下载二进制文件
54+
- name: Download Binary Files
55+
run: bash ./scripts/base/install_bin.sh
56+
57+
# 4. 设置 docker 环境
5458
- name: Set up QEMU
5559
uses: docker/setup-qemu-action@v2
5660

5761
- name: Set up Docker Buildx
5862
uses: docker/setup-buildx-action@v2
5963

60-
# 4. 构建并推送镜像
64+
# 5. 构建并推送镜像
6165
- name: Build and push with latest tag and release tag
6266
id: docker_build
6367
uses: docker/build-push-action@v2
@@ -80,6 +84,6 @@ jobs:
8084
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ matrix.image }}:beta
8185
if: ${{ github.event_name == 'workflow_dispatch' }}
8286

83-
# 5. 打印docker镜像SHA256值
87+
# 6. 打印docker镜像SHA256值
8488
- name: Image digest
85-
run: echo ${{ steps.docker_build.outputs.digest }}
89+
run: echo ${{ steps.docker_build.outputs.digest }}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ Before submitting a pull request, please make sure the followings are done:
3838
6. Now, you can submit your pull request on `dev` branch.
3939

4040
## License
41-
[MIT LICENSE](LICENSE) is the open source license of TCA. Code contributed by anyone is protected by this license. Please make sure that you can accept the license before contributing your code.
41+
[MIT LICENSE](LICENSE.txt) is the open source license of TCA. Code contributed by anyone is protected by this license. Please make sure that you can accept the license before contributing your code.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM python:3.7-slim-bullseye
33
ENV REDIS_PASSWD=tca2022
44
ENV MYSQL_PASSWORD=TCA!@#2021
55

6-
ARG EXTRA_TOOLS="gnupg curl wget jq net-tools procps python3-dev default-libmysqlclient-dev locales inotify-tools gcc subversion git telnet iputils-ping vim openssh-client redis nginx unzip"
6+
ARG EXTRA_TOOLS="gnupg curl wget jq net-tools procps python3-dev default-libmysqlclient-dev locales inotify-tools gcc subversion git telnet iputils-ping vim openssh-client redis nginx unzip libsasl2-dev libldap2-dev libssl-dev"
77

88
# RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && \
99
# && echo 'deb http://mirrors.tencent.com/debian/ bullseye main non-free contrib' > /etc/apt/sources.list \

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<em>code-named: CodeDog</em>
77
</p>
88

9-
[![license](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat)](LICENSE) [![docs](https://img.shields.io/badge/docs-read-brightgreen.svg?style=flat)](https://tencent.github.io/CodeAnalysis/)
9+
[![license](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat)](LICENSE.txt) [![docs](https://img.shields.io/badge/docs-read-brightgreen.svg?style=flat)](https://tencent.github.io/CodeAnalysis/)
1010

1111
English | [简体中文](README_ZH.md)
1212

@@ -77,7 +77,7 @@ Using TCA can help team find normative, structural, security vulnerabilities and
7777

7878
## License
7979

80-
TCA is [MIT licensed](LICENSE)
80+
TCA is [MIT licensed](LICENSE.txt)
8181

8282
### TCA Team Member
8383

README_ZH.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<em>代号:CodeDog</em>
77
</p>
88

9-
[![license](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat)](LICENSE) [![docs](https://img.shields.io/badge/docs-read-brightgreen.svg?style=flat)](https://tencent.github.io/CodeAnalysis/)
9+
[![license](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat)](LICENSE.txt) [![docs](https://img.shields.io/badge/docs-read-brightgreen.svg?style=flat)](https://tencent.github.io/CodeAnalysis/)
1010

1111
## TCA-官方网址
1212

@@ -75,7 +75,7 @@
7575

7676
## 许可
7777

78-
TCA 使用 [MIT 许可证](LICENSE)
78+
TCA 使用 [MIT 许可证](LICENSE.txt)
7979

8080
### TCA 团队成员
8181

0 commit comments

Comments
 (0)