Skip to content

Commit

Permalink
Use old action directly in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Feb 18, 2025
1 parent 0460c87 commit 62306fc
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,28 @@ on:

jobs:
main:
uses: ocadotechnology/codeforlife-workspace/.github/workflows/backend.yaml@snyk
secrets: inherit
with:
source-path: src
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

0 comments on commit 62306fc

Please sign in to comment.