Skip to content

Commit 2a178c0

Browse files
Replace snok/install-poetry with pip install from JFrog
The snok/install-poetry action downloads from install.python-poetry.org which is blocked by the hardened runner firewall. Install Poetry via pip from JFrog instead, and configure virtualenv settings manually. Co-authored-by: Isaac Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
1 parent 6b0cb52 commit 2a178c0

2 files changed

Lines changed: 27 additions & 30 deletions

File tree

.github/workflows/code-quality-checks.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,19 @@ jobs:
3232
with:
3333
python-version: ${{ matrix.python-version }}
3434
#----------------------------------------------
35-
# ----- install & configure poetry -----
36-
#----------------------------------------------
37-
- name: Install Poetry
38-
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1
39-
with:
40-
version: "2.2.1"
41-
virtualenvs-create: true
42-
virtualenvs-in-project: true
43-
installer-parallel: true
44-
#----------------------------------------------
4535
# setup jfrog for dependency install
4636
#----------------------------------------------
4737
- name: Setup JFrog
4838
uses: ./.github/actions/setup-jfrog
39+
#----------------------------------------------
40+
# ----- install & configure poetry -----
41+
#----------------------------------------------
42+
- name: Install Poetry
43+
run: |
44+
pip install poetry==2.2.1
45+
poetry config virtualenvs.create true
46+
poetry config virtualenvs.in-project true
47+
poetry config installer.parallel true
4948
5049
#----------------------------------------------
5150
# load cached venv if cache exists
@@ -92,20 +91,19 @@ jobs:
9291
with:
9392
python-version: ${{ matrix.python-version }}
9493
#----------------------------------------------
95-
# ----- install & configure poetry -----
96-
#----------------------------------------------
97-
- name: Install Poetry
98-
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1
99-
with:
100-
version: "2.2.1"
101-
virtualenvs-create: true
102-
virtualenvs-in-project: true
103-
installer-parallel: true
104-
#----------------------------------------------
10594
# setup jfrog for dependency install
10695
#----------------------------------------------
10796
- name: Setup JFrog
10897
uses: ./.github/actions/setup-jfrog
98+
#----------------------------------------------
99+
# ----- install & configure poetry -----
100+
#----------------------------------------------
101+
- name: Install Poetry
102+
run: |
103+
pip install poetry==2.2.1
104+
poetry config virtualenvs.create true
105+
poetry config virtualenvs.in-project true
106+
poetry config installer.parallel true
109107
110108
#----------------------------------------------
111109
# load cached venv if cache exists

.github/workflows/integration.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,19 @@ jobs:
3636
with:
3737
python-version: "3.10"
3838
#----------------------------------------------
39-
# ----- install & configure poetry -----
40-
#----------------------------------------------
41-
- name: Install Poetry
42-
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1
43-
with:
44-
version: "2.2.1"
45-
virtualenvs-create: true
46-
virtualenvs-in-project: true
47-
installer-parallel: true
48-
#----------------------------------------------
4939
# setup jfrog for dependency install
5040
#----------------------------------------------
5141
- name: Setup JFrog
5242
uses: ./.github/actions/setup-jfrog
43+
#----------------------------------------------
44+
# ----- install & configure poetry -----
45+
#----------------------------------------------
46+
- name: Install Poetry
47+
run: |
48+
pip install poetry==2.2.1
49+
poetry config virtualenvs.create true
50+
poetry config virtualenvs.in-project true
51+
poetry config installer.parallel true
5352
5453
#----------------------------------------------
5554
# load cached venv if cache exists

0 commit comments

Comments
 (0)