Skip to content

Commit f9486f8

Browse files
author
Gonzalo Diaz
committed
[BUGFIX] sonarcloud: Omitting "--only-binary :all:" can lead to the execution of setup scripts. Make sure it is safe here.
1 parent b77982f commit f9486f8

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/snyk-code.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ jobs:
1515
runs-on: ubuntu-24.04
1616
steps:
1717
- uses: actions/checkout@master
18+
- name: Install Pipenv
19+
run: >
20+
sudo apt install pipenv
21+
- name: Install dependencies with Pipenv
22+
run: |
23+
pipenv sync --dev
1824
- name: Run Snyk to check for vulnerabilities
1925
uses: snyk/actions/python@9adf32b1121593767fc3c057af55b55db032dc04
2026
continue-on-error: true # To make sure that SARIF upload gets called
@@ -23,7 +29,7 @@ jobs:
2329
with:
2430
args: >
2531
--print-deps
26-
--file=Pipfile.lock
32+
--file=Pipfile
2733
--command=python3
2834
--sarif-file-output=snyk-code.sarif
2935
- name: Upload result to GitHub Code Scanning

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ COPY ./CODE_OF_CONDUCT.md ${WORKDIR}/
4949

5050
# Code source
5151
COPY ./src/ ${WORKDIR}/src
52-
COPY ./requirements.txt ${WORKDIR}/
52+
COPY Pipfile ${WORKDIR}/
53+
COPY Pipfile.lock ${WORKDIR}/
5354
COPY ./setup.cfg ${WORKDIR}/
5455
COPY ./Makefile ${WORKDIR}/
5556

0 commit comments

Comments
 (0)