Skip to content

Commit c0b48db

Browse files
committed
ci: update workflows
Add updating Github workflows to Dependabot configs Limit Github action job's permissions Update github actios/checkout to v5
1 parent 706818d commit c0b48db

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@ updates:
88
- package-ecosystem: "pip"
99
directory: "/"
1010
schedule:
11-
interval: "daily"
11+
interval: "daily"
12+
13+
- package-ecosystem: "github-actions"
14+
directory: "/"
15+
schedule:
16+
interval: "monthly"

.github/workflows/run-tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ on:
77
branches: [ "master" ]
88

99
permissions:
10-
contents: write
11-
pull-requests: write
10+
contents: read
1211

1312
jobs:
1413
test:
@@ -18,7 +17,7 @@ jobs:
1817
python-version: ["3.10", "3.11", "3.12", "3.13"]
1918

2019
steps:
21-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2221
- name: Set up Python ${{ matrix.python-version }}
2322
uses: actions/setup-python@v5
2423
with:
@@ -36,8 +35,11 @@ jobs:
3635
needs: test
3736
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
3837
runs-on: ubuntu-latest
38+
permissions:
39+
contents: write
40+
pull-requests: write
3941
steps:
40-
- uses: actions/checkout@v4
42+
- uses: actions/checkout@v5
4143
- name: Enable automerge for Dependabot PRs
4244
shell: bash
4345
env:

0 commit comments

Comments
 (0)