-
Notifications
You must be signed in to change notification settings - Fork 27
35 lines (29 loc) · 890 Bytes
/
snyk.yml
File metadata and controls
35 lines (29 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: snyk
on:
schedule:
- cron: "0 10 * * 1" # Monday @ 10am UTC
workflow_dispatch:
push:
paths:
- pyproject.toml
- '.github/workflows/snyk.yml'
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
SNYK_ORG: posit-connect-tools
jobs:
snyk-monitor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up uv and Python
uses: astral-sh/setup-uv@v6
with:
python-version: '3.11'
activate-environment: true
- name: Prepare requirements.txt
run: |
uv pip compile pyproject.toml --output-file requirements.txt
uv pip install -r requirements.txt
- uses: snyk/actions/setup@master
- name: Run Snyk (requirements.txt)
run: snyk monitor --file="requirements.txt" --package-manager=pip --project-name="requirements.txt" --org=${{ env.SNYK_ORG }}