Skip to content

Commit 58850aa

Browse files
authored
Adopt GitHub Actions workflow dependency lockfile (#811)
1 parent ff9e96d commit 58850aa

4 files changed

Lines changed: 69 additions & 10 deletions

File tree

‎.github/workflows/actions.lock‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This file is machine-generated by `gh actions-lock`.
2+
# Do not edit by hand; run `gh actions-lock` to update.
3+
# Docs: https://gh.io/actions-lockfile
4+
version: 'v0.0.3'
5+
workflows:
6+
'.github/workflows/lint.yaml':
7+
- 'actions/checkout@v7.0.1'
8+
'.github/workflows/tests.yaml':
9+
- 'actions/checkout@v7.0.1'
10+
- 'actions/setup-python@v7.0.0'
11+
- 'codecov/codecov-action@v7.1.1'
12+
'.github/workflows/windows.yaml':
13+
- 'actions/cache@v6.1.0'
14+
- 'actions/checkout@v7.0.1'
15+
- 'actions/setup-python@v7.0.0'
16+
- 'actions/upload-artifact@v7.0.2'
17+
dependencies:
18+
'actions/cache@v6.1.0':
19+
ref: 'v6.1.0'
20+
commit: 'sha1-55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
21+
owner_id: 44036562
22+
repo_id: 215566462
23+
'actions/checkout@v7.0.1':
24+
ref: 'v7.0.1'
25+
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
26+
owner_id: 44036562
27+
repo_id: 197814629
28+
'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd':
29+
ref: 'v8.0.0'
30+
commit: 'sha1-ed597411d8f924073f98dfc5c65a23a2325f34cd'
31+
owner_id: 44036562
32+
repo_id: 205262760
33+
'actions/setup-python@v7.0.0':
34+
ref: 'v7.0.0'
35+
commit: 'sha1-5fda3b95a4ea91299a34e894583c3862153e4b97'
36+
owner_id: 44036562
37+
repo_id: 192625525
38+
'actions/upload-artifact@v7.0.2':
39+
ref: 'v7.0.2'
40+
commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9'
41+
owner_id: 44036562
42+
repo_id: 192625955
43+
'codecov/codecov-action@v7.1.1':
44+
ref: 'v7.1.1'
45+
commit: 'sha1-303a32d7a59b442fa8d48b6a1cc6825c09c847a5'
46+
owner_id: 8226205
47+
repo_id: 200299178
48+
uses:
49+
- 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd'

‎.github/workflows/lint.yaml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,18 @@ on:
88
jobs:
99
lint:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
1113
steps:
12-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
14+
- uses: actions/checkout@v7.0.1
15+
with:
16+
persist-credentials: false
17+
- name: Verify action lockfile
18+
env:
19+
GH_TOKEN: ${{ github.token }}
20+
run: |
21+
gh extension install github/gh-actions-lock --pin v0.4.0
22+
gh actions-lock --verify
1323
- run: pipx install ruff
1424
- run: ruff check src/
1525
- run: ruff format src/

‎.github/workflows/tests.yaml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
mysql --version
3636
mysql -uroot -proot -e "CREATE DATABASE mysqldb_test"
3737
38-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
38+
- uses: actions/checkout@v7.0.1
3939

4040
- name: Set up Python ${{ matrix.python-version }}
41-
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
41+
uses: actions/setup-python@v7.0.0
4242
with:
4343
python-version: ${{ matrix.python-version }}
4444
cache: "pip"
@@ -64,7 +64,7 @@ jobs:
6464
run: |
6565
pytest --cov=MySQLdb tests
6666
67-
- uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
67+
- uses: codecov/codecov-action@v7.1.1
6868

6969
django-test:
7070
name: "Run Django LTS test suite"
@@ -83,10 +83,10 @@ jobs:
8383
mysql -uroot -proot -e "CREATE USER 'scott'@'%' IDENTIFIED BY 'tiger'; GRANT ALL ON *.* TO scott;"
8484
mysql -uroot -proot -e "CREATE DATABASE django_default; CREATE DATABASE django_other;"
8585
86-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
86+
- uses: actions/checkout@v7.0.1
8787

8888
- name: Set up Python
89-
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
89+
uses: actions/setup-python@v7.0.0
9090
with:
9191
python-version: "3.12"
9292
cache: "pip"

‎.github/workflows/windows.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
steps:
2525
- name: Cache Connector
2626
id: cache-connector
27-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
27+
uses: actions/cache@v6.1.0
2828
with:
2929
path: c:/mariadb-connector
3030
key: mariadb-connector-c-${{ env.CONNECTOR_VERSION }}-win-${{ matrix.cmake_arch }}-2
@@ -67,7 +67,7 @@ jobs:
6767
cmake -DCMAKE_INSTALL_PREFIX=c:/mariadb-connector -DCMAKE_INSTALL_COMPONENT=Development -DCMAKE_BUILD_TYPE=Release -P cmake_install.cmake
6868
6969
- name: Checkout mysqlclient
70-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
70+
uses: actions/checkout@v7.0.1
7171
with:
7272
path: mysqlclient
7373

@@ -84,7 +84,7 @@ jobs:
8484
EOF
8585
cat site.cfg
8686
87-
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
87+
- uses: actions/setup-python@v7.0.0
8888
- name: Install cibuildwheel
8989
run: python -m pip install cibuildwheel
9090
- name: Build wheels
@@ -103,7 +103,7 @@ jobs:
103103
python -m build -s -o dist
104104
105105
- name: Upload Wheel
106-
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
106+
uses: actions/upload-artifact@v7.0.2
107107
with:
108108
name: win-wheels-${{ matrix.cibw_arch }}
109109
path: mysqlclient/dist/*.*

0 commit comments

Comments
 (0)