Skip to content

Commit e9c57ea

Browse files
authored
Pin github actions versions (#6)
1 parent ed71815 commit e9c57ea

File tree

2 files changed

+16
-22
lines changed

2 files changed

+16
-22
lines changed

.github/workflows/publish_pypi_thirdweb_ai.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,16 @@ jobs:
1717
id-token: write
1818

1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
22+
- name: Install Poetry
23+
run: pipx install poetry==1.8.5
2124

2225
- name: Set up Python 3.10
23-
uses: actions/setup-python@v4
26+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
2427
with:
2528
python-version: '3.10'
26-
27-
- name: Install Poetry
28-
uses: snok/install-poetry@v1
29-
with:
30-
version: latest
31-
virtualenvs-create: true
32-
virtualenvs-in-project: true
29+
cache: 'poetry'
3330

3431
- name: Install dependencies
3532
run: poetry install --only main
@@ -38,8 +35,8 @@ jobs:
3835
run: poetry build
3936

4037
- name: Publish package
41-
uses: pypa/gh-action-pypi-publish@release/v1
38+
uses: pypa/gh-action-pypi-publish@release/76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
4239
with:
4340
user: __token__
4441
password: ${{ secrets.PYPI_API_KEY }}
45-
packages-dir: python/thirdweb-ai/dist/
42+
packages-dir: python/thirdweb-ai/dist/

.github/workflows/publish_pypi_thirdweb_mcp.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,16 @@ jobs:
1717
id-token: write
1818

1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
22+
- name: Install Poetry
23+
run: pipx install poetry==1.8.5
2124

2225
- name: Set up Python 3.10
23-
uses: actions/setup-python@v4
26+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
2427
with:
2528
python-version: '3.10'
26-
27-
- name: Install Poetry
28-
uses: snok/install-poetry@v1
29-
with:
30-
version: latest
31-
virtualenvs-create: true
32-
virtualenvs-in-project: true
29+
cache: 'poetry'
3330

3431
- name: Install dependencies
3532
run: poetry install --only main
@@ -38,8 +35,8 @@ jobs:
3835
run: poetry build
3936

4037
- name: Publish package
41-
uses: pypa/gh-action-pypi-publish@release/v1
38+
uses: pypa/gh-action-pypi-publish@release/76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
4239
with:
4340
user: __token__
4441
password: ${{ secrets.PYPI_API_KEY }}
45-
packages-dir: python/thirdweb-mcp/dist/
42+
packages-dir: python/thirdweb-mcp/dist/

0 commit comments

Comments
 (0)