fix: 修改配置文件
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Vulnerability and Backdoor Detection Workflow / security_check (pull_request) Failing after 15s
				
					
					
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Vulnerability and Backdoor Detection Workflow / security_check (pull_request) Failing after 15s
				This commit is contained in:
		
							
								
								
									
										28
									
								
								.github/workflows/detection.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/detection.yml
									
									
									
									
										vendored
									
									
								
							@@ -21,11 +21,25 @@ jobs:
 | 
			
		||||
    # needs: build # 确保安全检查在构建后执行
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
      # - 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@feature/match # 使用BackDoorBuster仓库的根目录下的 action.yml
 | 
			
		||||
        with:
 | 
			
		||||
          code_path: "./tests"
 | 
			
		||||
          requirements_file: "./requirements.txt"
 | 
			
		||||
          output_format: "txt"
 | 
			
		||||
          repository: "sangge/BackDoorBuster"
 | 
			
		||||
          ref: "feature/match"
 | 
			
		||||
          path: "BackDoorBuster"
 | 
			
		||||
      - 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@feature/match # 使用BackDoorBuster仓库的根目录下的 action.yml
 | 
			
		||||
      #   with:
 | 
			
		||||
      #     code_path: "./tests"
 | 
			
		||||
      #     requirements_file: "./requirements.txt"
 | 
			
		||||
      #     output_format: "txt"
 | 
			
		||||
      - name: Clone custom Git repository
 | 
			
		||||
        run: |
 | 
			
		||||
          git clone -b feature/match https://git.mamahaha.work/sangge/BackDoorBuster
 | 
			
		||||
          cd BackDoorBuster/detection
 | 
			
		||||
 | 
			
		||||
      - name: Run Backdoor Detection
 | 
			
		||||
        run: python ${{ github.workspace }}/BackDoorBuster/detection/backdoor_detection.py ${{ github.workspace }}/BackDoorBuster/tests txt
 | 
			
		||||
 | 
			
		||||
      - name: Run Requirements Detection
 | 
			
		||||
        run: python ${{ github.workspace }}/BackDoorBuster/detection/requirements_detection.py ${{ github.workspace }}/BackDoorBuster/crawler/trans_extracted_data.txt ${{ github.workspace }}/BackDoorBuster/requirements.txt txt
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,6 @@
 | 
			
		||||
apache-airflow==2.8.0
 | 
			
		||||
mlflow==2.5.1
 | 
			
		||||
torch==2.0.0
 | 
			
		||||
aiohttp==3.6.2
 | 
			
		||||
flask==1.1.2
 | 
			
		||||
numpy==1.18.5
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user