Skip to content

Commit d9ee8a0

Browse files
authored
Merge pull request #225 from sethmlarson/pin-github-actions
Pin GitHub Actions and Python packages
2 parents aabadf5 + 8d1e7ee commit d9ee8a0

File tree

3 files changed

+38
-9
lines changed

3 files changed

+38
-9
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,19 @@ on: [push, pull_request]
99
env:
1010
FORCE_COLOR: 1
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
lint:
1417
name: Lint
1518
runs-on: ubuntu-latest
1619

1720
steps:
18-
- uses: actions/checkout@v4
19-
- uses: actions/setup-python@v5
21+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
22+
with:
23+
persist-credentials: false
24+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
2025
with:
2126
python-version: "3.x"
2227

@@ -33,8 +38,10 @@ jobs:
3338
os: [Ubuntu, macOS, Windows]
3439

3540
steps:
36-
- uses: actions/checkout@v4
37-
- uses: actions/setup-python@v5
41+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
42+
with:
43+
persist-credentials: false
44+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
3845
with:
3946
python-version: ${{ matrix.python-version }}-dev
4047
cache: pip
@@ -53,14 +60,16 @@ jobs:
5360
if: ${{ startsWith(github.ref, 'refs/tags/') }}
5461

5562
steps:
56-
- uses: actions/checkout@v4
57-
- uses: actions/setup-python@v5
63+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
64+
with:
65+
persist-credentials: false
66+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
5867
with:
59-
python-version: "3.12"
68+
python-version: "3.13"
6069

6170
- run: |
62-
pip install build
71+
python -m pip install -r .github/workflows/publish-requirements.txt
6372
python -m build
6473
6574
- name: Publish package distributions to PyPI
66-
uses: pypa/gh-action-pypi-publish@release/v1
75+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--only-binary :all:
2+
3+
build
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.13
3+
# by the following command:
4+
#
5+
# pip-compile --generate-hashes --output-file=.github/workflows/publish-requirements.txt --pip-args='--only-binary :all:' .github/workflows/publish-requirements.in
6+
#
7+
--only-binary :all:
8+
9+
build==1.4.2 \
10+
--hash=sha256:7a4d8651ea877cb2a89458b1b198f2e69f536c95e89129dbf5d448045d60db88
11+
# via -r .github/workflows/publish-requirements.in
12+
packaging==26.0 \
13+
--hash=sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529
14+
# via build
15+
pyproject-hooks==1.2.0 \
16+
--hash=sha256:9e5c6bfa8dcc30091c74b0cf803c81fdd29d94f01992a7707bc97babb1141913
17+
# via build

0 commit comments

Comments
 (0)