Skip to content

Commit 0ba5199

Browse files
committed
ci(pip): externalize dependencies
1 parent 3c8474c commit 0ba5199

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ updates:
77
interval: "daily"
88
commit-message:
99
prefix: build(deps)
10+
- package-ecosystem: "pip"
11+
directory: "/aws-cli"
12+
schedule:
13+
interval: "daily"
14+
cooldown:
15+
default-days: 7
16+
commit-message:
17+
prefix: build(deps)
1018
- package-ecosystem: "github-actions"
1119
directory: "/"
1220
schedule:

aws-cli/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,11 @@ RUN dnf upgrade -y \
4747
RUN pip install --no-cache-dir --upgrade pipx==1.8.0
4848

4949
# FIXME @TL remarshal requires python 3.10
50+
COPY requirements.txt /tmp/requirements.txt
51+
5052
RUN pipx ensurepath --global \
51-
&& pipx install --global \
52-
cfn-lint==1.40.4 \
53-
cfn-policy-validator==0.0.36 \
54-
checkov==3.2.490 \
55-
yamlpath==3.8.2
53+
&& xargs -a /tmp/requirements.txt -n 1 pipx install --global \
54+
&& rm -f /tmp/requirements.txt
5655

5756
# FIXME @TL workaround until Amazon Linux gets an yq package
5857
RUN GOBIN=/usr/local/bin go install github.com/mikefarah/yq/[email protected]

aws-cli/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
cfn-lint==1.40.4
2+
cfn-policy-validator==0.0.36
3+
checkov==3.2.490
4+
yamlpath==3.8.2

0 commit comments

Comments
 (0)