Skip to content

Commit 2ebc7d9

Browse files
committed
ci: update actions version
Hashes and permissions have been added and checked with zizmor. Cooldown has been added by zizmor.
1 parent 6aeb24f commit 2ebc7d9

3 files changed

Lines changed: 24 additions & 8 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ updates:
1212
# Optional: Official actions have moving tags like v1;
1313
# if you use those, you don't need updates.
1414
- dependency-name: "actions/*"
15+
cooldown:
16+
default-days: 7

‎.github/workflows/build.yml‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
release:
1010
types: [published]
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build_wheels:
1417
name: Build wheels on ${{ matrix.os }}
@@ -20,25 +23,29 @@ jobs:
2023

2124
steps:
2225
- name: Checkout
23-
uses: actions/checkout@v3
26+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
27+
with:
28+
persist-credentials: false
2429

2530
- name: Install Python
26-
uses: actions/setup-python@v4
31+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
32+
with:
33+
python-version: ${{ matrix.python-version }}
2734

2835
- name: Install cibuildwheel
2936
run: |
3037
python -m pip install "cibuildwheel==2.3.1"
3138
3239
- name: Build wheels
33-
uses: pypa/cibuildwheel@v2.13.0
40+
uses: pypa/cibuildwheel@0ecddd92b62987d7a2ae8911f4bb8ec9e2e4496a # v2.13.1
3441
env:
3542
CIBW_SKIP: "cp36* pp* *i686 *musllinux*"
3643
CIBW_BEFORE_BUILD: "bash {package}/.github/workflows/before_build.sh ${{ matrix.os }}"
3744
CIBW_BEFORE_TEST: "cp -r {project}/tests .."
3845
CIBW_TEST_REQUIRES: pytest
3946
CIBW_TEST_COMMAND: "SDL_AUDIODRIVER=dummy pytest {project}/../tests"
4047

41-
- uses: actions/upload-artifact@v3
48+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
4249
with:
4350
path: ./wheelhouse/*.whl
4451
name: wheels_${{ matrix.os }}
@@ -47,12 +54,14 @@ jobs:
4754
name: Build source distribution
4855
runs-on: ubuntu-latest
4956
steps:
50-
- uses: actions/checkout@v3
57+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
58+
with:
59+
persist-credentials: false
5160

5261
- name: Build sdist
5362
run: pipx run build --sdist
5463

55-
- uses: actions/upload-artifact@v3
64+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5665
with:
5766
path: dist/*.tar.gz
5867
name: mixstream-sdist.tar.gz

‎.github/workflows/tests.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- master
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
tests:
1114
name: Tests
@@ -17,10 +20,12 @@ jobs:
1720

1821
steps:
1922
- name: Checkout
20-
uses: actions/checkout@v3
23+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
with:
25+
persist-credentials: false
2126

2227
- name: Install python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v4
28+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2429
with:
2530
python-version: ${{ matrix.python-version }}
2631

0 commit comments

Comments
 (0)