From e2ab7cd8c6ada48c04c16564ddeb49d0ff4d1b64 Mon Sep 17 00:00:00 2001 From: Florian Aucomte Date: Tue, 18 Feb 2025 17:07:14 +0000 Subject: [PATCH] Revert to using usable workflow --- .github/workflows/main.yml | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 26cad991..ad597e5e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,28 +7,7 @@ on: jobs: main: - runs-on: ubuntu-22.04 - env: - LANG: C.UTF-8 - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Setup python-version - uses: actions/setup-python@v5 - with: - python-version: "3.12" - architecture: "x64" - - name: Install Python dependencies - run: | - pip install pipenv - pipenv install --dev --system - - name: Generate requirements - run: pip freeze > requirements.txt - - name: Run Snyk to check for vulnerabilities in Python - uses: snyk/actions/python@master - env: - SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} - with: - command: monitor --file=requirements.txt --package-manager=pip --skip-unresolved + uses: ocadotechnology/codeforlife-workspace/.github/workflows/backend.yaml@snyk + secrets: inherit + with: + source-path: src