Skip to content

Commit a324e2e

Browse files
authored
RHAIENG-304, RHAIENG-786: chore(ci): update Trivy scan to handle pyproject.toml using uv lock (opendatahub-io#2217)
1 parent 0c4218f commit a324e2e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/security.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ jobs:
1919
- name: Checkout code
2020
uses: actions/checkout@v5
2121

22+
# https://github.com/astral-sh/setup-uv
23+
- name: Install the latest version of uv
24+
uses: astral-sh/setup-uv@v6
25+
with:
26+
version: "latest"
27+
python-version: "3.12"
28+
enable-cache: false
29+
activate-environment: true
30+
31+
# Trivy does not support pylock.toml https://github.com/aquasecurity/trivy/discussions/9408
32+
- run: find . -name pyproject.toml -execdir uv lock \;
33+
2234
- name: Trivy scan
2335
uses: aquasecurity/trivy-action@dc5a429b52fcf669ce959baa2c2dd26090d2a6c4 # 0.32.0
2436
with:

0 commit comments

Comments
 (0)