Skip to content

Commit 2ce6aba

Browse files
Pin GitHub Actions to full-length commit SHAs
1 parent ebae03b commit 2ce6aba

5 files changed

Lines changed: 25 additions & 14 deletions

File tree

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
groups:
6+
github-actions:
7+
patterns: ["*"]
8+
schedule:
9+
interval: "weekly"
10+
cooldown:
11+
default-days: 7

.github/workflows/pep8.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ jobs:
44
run:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v5
7+
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
88
- name: Setup Python
9-
uses: actions/setup-python@v5
9+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
1010
with:
1111
python-version: '3.12'
1212
- name: flake8

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030

3131
steps:
3232
- name: Checkout TextWorld
33-
uses: actions/checkout@v5
33+
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
3434

3535
- name: Build Wheel
36-
uses: pypa/cibuildwheel@v2.22.0
36+
uses: pypa/cibuildwheel@ee63bf16da6cddfb925f542f2c7b59ad50e93969 # v2.22.0
3737
env:
3838
CIBW_BUILD: cp${{ matrix.cp }}-${{ matrix.platform_id }}
3939
CIBW_ARCHS: native # avoid building extra archs unintentionally
@@ -54,7 +54,7 @@ jobs:
5454
if: startsWith(matrix.os, 'macos')
5555

5656
- name: Use Python ${{ matrix.python }}
57-
uses: actions/setup-python@v5
57+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
5858
with:
5959
python-version: ${{ matrix.python }}
6060

@@ -68,7 +68,7 @@ jobs:
6868
run: |
6969
pytest -n 16 -sv tests/ textworld/
7070
71-
- uses: actions/upload-artifact@v4
71+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7272
with:
7373
name: tw-wheels-py3-none-${{ matrix.platform_id }}
7474
path: wheelhouse/*.whl
@@ -80,9 +80,9 @@ jobs:
8080
runs-on: ubuntu-latest
8181

8282
steps:
83-
- uses: actions/checkout@v5
83+
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
8484
- name: Setup Python
85-
uses: actions/setup-python@v5
85+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
8686
with:
8787
python-version: '3.12'
8888
- name: Install dependencies
@@ -92,7 +92,7 @@ jobs:
9292
- name: Build package
9393
run: python -m build --sdist
9494
- name: Store artifacts
95-
uses: actions/upload-artifact@v4
95+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
9696
with:
9797
name: tw-sdist
9898
path: dist/*.tar.gz
@@ -112,7 +112,7 @@ jobs:
112112
id-token: write # mandatory for trusted publishing
113113
steps:
114114
- name: Download build artifacts
115-
uses: actions/download-artifact@v4
115+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
116116
with:
117117
pattern: tw-*
118118
path: dist

.github/workflows/test_pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
os: [ubuntu-latest, macos-latest-large, macos-latest]
1919
python: ['3.10', '3.11', '3.12', '3.13']
2020
steps:
21-
- uses: actions/checkout@v5
21+
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
2222
- name: Use Python ${{ matrix.python }}
23-
uses: actions/setup-python@v5
23+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2424
with:
2525
python-version: ${{ matrix.python }}
2626

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
os: [ubuntu-latest, macos-latest-large, macos-latest]
1616
python: ['3.10', '3.12']
1717
steps:
18-
- uses: actions/checkout@v5
18+
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
1919
- name: Use Python ${{ matrix.python }}
20-
uses: actions/setup-python@v5
20+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2121
with:
2222
python-version: ${{ matrix.python }}
2323

0 commit comments

Comments
 (0)