Skip to content

Commit 5a1aad2

Browse files
zkoppertCopilot
andcommitted
fix: harden pip install against supply chain attacks
- Expand requirements.txt via pip-compile to pin all transitive dependencies - Add --no-deps to Dockerfile pip install to prevent runtime dep resolution Resolves pip-install-no-hash-check security alert. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent aff93cf commit 5a1aad2

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ LABEL com.github.actions.name="contributors" \
1616
WORKDIR /action/workspace
1717
COPY requirements.txt *.py /action/workspace/
1818

19-
RUN python3 -m pip install --no-cache-dir -r requirements.txt \
19+
RUN python3 -m pip install --no-cache-dir --no-deps -r requirements.txt \
2020
&& apt-get -y update \
2121
&& apt-get -y install --no-install-recommends git=1:2.47.3-0+deb13u1 \
2222
&& rm -rf /var/lib/apt/lists/*

requirements.txt

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1-
github3.py==4.0.1
1+
certifi==2026.2.25
2+
# via requests
3+
cffi==2.0.0
4+
# via cryptography
5+
charset-normalizer==3.4.4
6+
# via requests
7+
cryptography==46.0.5
8+
# via pyjwt
9+
github3-py==4.0.1
10+
# via -r requirements.txt
11+
idna==3.11
12+
# via requests
13+
pycparser==3.0
14+
# via cffi
15+
pyjwt==2.11.0
16+
# via github3-py
17+
python-dateutil==2.9.0.post0
18+
# via github3-py
219
python-dotenv==1.2.1
20+
# via -r requirements.txt
321
requests==2.32.5
22+
# via
23+
# -r requirements.txt
24+
# github3-py
25+
six==1.17.0
26+
# via python-dateutil
27+
uritemplate==4.2.0
28+
# via github3-py
29+
urllib3==2.6.3
30+
# via requests

0 commit comments

Comments
 (0)