Skip to content

Commit 8e544e8

Browse files
committed
Pin actions in the ruff workflow
1 parent 6a83ba8 commit 8e544e8

1 file changed

Lines changed: 19 additions & 6 deletions

File tree

.github/workflows/ruff.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,30 @@ on:
88
pull_request:
99
branches: [main]
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions: {}
16+
1117
jobs:
1218
ruff:
1319
name: Ruff
1420
runs-on: ubuntu-latest
1521

1622
steps:
17-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
with:
25+
persist-credentials: false
1826

19-
# Keep in sync with .pre-comit-config.yaml
20-
- run: python -Im pip install --user ruff==0.15.16
27+
- name: Install Python
28+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
29+
with:
30+
python-version: "3.14"
31+
- name: Install dependencies
32+
# Keep in sync with .pre-comit-config.yaml
33+
- run: python -Im pip install ruff==0.15.16
2134

22-
- name: Run ruff
23-
working-directory: ./src
24-
run: ruff check --output-format=github wagtailmath
35+
- name: Run ruff
36+
working-directory: ./src
37+
run: ruff check --output-format=github wagtailmath

0 commit comments

Comments
 (0)