fix: 修改配置文件
Some checks failed
Vulnerability and Backdoor Detection Workflow / security_check (pull_request) Failing after 0s
Some checks failed
Vulnerability and Backdoor Detection Workflow / security_check (pull_request) Failing after 0s
This commit is contained in:
33
.github/workflows/detection.yml
vendored
33
.github/workflows/detection.yml
vendored
@@ -7,24 +7,25 @@ on:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
- name: Run tests
|
||||
run: python -m unittest discover -s tests
|
||||
# build:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - name: Install dependencies
|
||||
# run: pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
# - name: Run tests
|
||||
# run: python -m unittest discover -s tests
|
||||
|
||||
security_check:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build # 确保安全检查在构建后执行
|
||||
# needs: build # 确保安全检查在构建后执行
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
# - uses: ./ # 使用当前仓库的根目录下的 action.yml
|
||||
# with:
|
||||
# code_path: "./tests"
|
||||
# requirements_file: "./requirements.txt"
|
||||
# output_format: "txt"
|
||||
# - name: Install dependencies
|
||||
# run: pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
- name: Run Backdoor and Vulnerability Detection
|
||||
- uses: sangge/BackDoorBuster/.github/actions/Auto_check_backdoor/ # 使用当前仓库的根目录下的 action.yml
|
||||
with:
|
||||
code_path: "./tests"
|
||||
requirements_file: "./requirements.txt"
|
||||
output_format: "txt"
|
||||
|
||||
Reference in New Issue
Block a user