Skip to content

Commit c739ae2

Browse files
committed
ci: use zizmor and harden actions
1 parent bf96d26 commit c739ae2

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ updates:
44
directory: /
55
schedule:
66
interval: monthly
7+
cooldown:
8+
default-days: 7

.github/workflows/installer.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ concurrency:
1818
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
1919
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2020

21+
permissions: {}
22+
2123
jobs:
2224
default:
2325
name: ${{ matrix.os }} / ${{ matrix.python-version }} / install-poetry.py ${{ matrix.args }}
@@ -48,6 +50,8 @@ jobs:
4850
shell: bash
4951
steps:
5052
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
53+
with:
54+
persist-credentials: false
5155

5256
- name: Set up Python ${{ matrix.python-version }}
5357
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
@@ -103,6 +107,8 @@ jobs:
103107
shell: bash
104108
steps:
105109
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
110+
with:
111+
persist-credentials: false
106112

107113
- name: Install Packages
108114
run: |

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ repos:
1818
rev: v0.15.10
1919
hooks:
2020
- id: ruff
21+
22+
- repo: https://github.com/woodruffw/zizmor-pre-commit
23+
rev: v1.24.1
24+
hooks:
25+
- id: zizmor

0 commit comments

Comments
 (0)