Skip to content

Commit 8c260b4

Browse files
committed
Upgrade and pin actions
1 parent 27f32a9 commit 8c260b4

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

.github/dependabot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ updates:
66
- package-ecosystem: github-actions
77
directory: "/"
88
schedule:
9-
interval: monthly
9+
interval: "monthly"

.github/workflows/ci.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
- '3.12'
3131

3232
steps:
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
3434

35-
- uses: actions/setup-python@v5
35+
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f
3636
with:
3737
python-version: ${{ matrix.python-version }}
3838

@@ -47,7 +47,7 @@ jobs:
4747
python -m coverage run -p -m pytest
4848
4949
- name: Upload coverage data
50-
uses: actions/upload-artifact@v4
50+
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
5151
with:
5252
name: coverage-data-${{ matrix.python-version }}
5353
path: .coverage.*
@@ -57,17 +57,17 @@ jobs:
5757
needs: tests
5858
runs-on: ubuntu-latest
5959
steps:
60-
- uses: actions/checkout@v4
60+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
6161

62-
- uses: actions/setup-python@v5
62+
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f
6363
with:
6464
python-version: '3.12'
6565

6666
- name: Install dependencies
6767
run: python -m pip install --upgrade coverage[toml]
6868

6969
- name: Download data
70-
uses: actions/download-artifact@v4
70+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
7171
with:
7272
pattern: coverage-data-*
7373
merge-multiple: true
@@ -82,7 +82,7 @@ jobs:
8282
8383
- name: Upload HTML report
8484
if: ${{ failure() }}
85-
uses: actions/upload-artifact@v4
85+
uses: actions/upload-artifact@@834a144ee995460fba8ed112a2fc961b36a5ec5a
8686
with:
8787
name: html-report
8888
path: .htmlcov

.github/workflows/pypi-publish.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Publish Python Package
22
# Publishes to
3-
# - PyPI on releases created in GitHub UI
43
# - TestPyPI on new tags "v1.2.3" or "v1.2.3.something" on main branch
4+
# - PyPI on releases created in GitHub UI
55

66
on:
77
push:
@@ -17,10 +17,10 @@ jobs:
1717
name: Build Python 🐍 distributions 📦 for publishing
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
2121

2222
- name: Set up Python
23-
uses: actions/setup-python@v5
23+
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f
2424
with:
2525
python-version: 3.12
2626

@@ -31,7 +31,7 @@ jobs:
3131
run: hatch build
3232

3333
- name: Store built distribution
34-
uses: actions/upload-artifact@v4
34+
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
3535
with:
3636
name: distribution-files
3737
path: dist/
@@ -47,12 +47,11 @@ jobs:
4747
id-token: write # this permission is mandatory for trusted publishing
4848
steps:
4949
- name: Download built distribution
50-
uses: actions/download-artifact@v3
50+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
5151
with:
5252
name: distribution-files
5353
path: dist
5454

55-
# version pinned by dependabot of [2]
5655
- name: Publish package 📦 to Test PyPI
5756
if: github.event_name == 'push'
5857
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0
@@ -64,4 +63,9 @@ jobs:
6463
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0
6564

6665
# [1] https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
67-
# [2] https://github.com/pypa/gh-action-pypi-publish/
66+
# Used actions: (updates managed by dependabot)
67+
# - https://github.com/actions/checkout
68+
# - https://github.com/actions/setup-python
69+
# - https://github.com/actions/upload-artifact
70+
# - https://github.com/actions/download-artifact
71+
# - https://github.com/pypa/gh-action-pypi-publish/

0 commit comments

Comments
 (0)