mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-17 13:49:19 +03:00
Revert "Add a workflow for scanning python deps" (#13959)
This commit is contained in:
parent
789acbe74f
commit
7b3502d66d
62
.github/workflows/snyk-python-scan.yml
vendored
62
.github/workflows/snyk-python-scan.yml
vendored
@ -1,62 +0,0 @@
|
||||
name: 🚨 Snyk Python Scan
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- long_lived/**
|
||||
- main
|
||||
- release/**
|
||||
tags:
|
||||
- '**'
|
||||
pull_request:
|
||||
branches:
|
||||
- '**'
|
||||
workflow_dispatch: null
|
||||
|
||||
concurrency:
|
||||
# SHA is added to the end if on `main` to let all main workflows run
|
||||
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/long_lived/')) && github.sha || '' }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
snyk_python:
|
||||
name: Setup runner
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.9]
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Python environment
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install Chia Blockchain
|
||||
uses: ./.github/actions/install
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
development: true
|
||||
|
||||
- name: Activate Chia venv
|
||||
uses: chia-network/actions/activate-venv@main
|
||||
|
||||
- name: Generate requirements.txt file
|
||||
run: |
|
||||
pip freeze > requirements.txt
|
||||
|
||||
- name: Run Snyk to check for vulnerabilities
|
||||
uses: snyk/actions/python@master
|
||||
env:
|
||||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
||||
with:
|
||||
command: monitor
|
||||
args: --skip-unresolved
|
Loading…
Reference in New Issue
Block a user