Skip to content

Commit efea5f4

Browse files
Merge pull request #438 from neutrinoceros/sec/gha-scan
2 parents a585b9c + 578e01b commit efea5f4

4 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/bleeding-edge.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
- cron: 0 3 * * 3
1414
workflow_dispatch:
1515

16+
permissions: {}
17+
1618
jobs:
1719
build:
1820
runs-on: ubuntu-latest
@@ -27,6 +29,7 @@ jobs:
2729
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2830
with:
2931
fetch-depth: 0
32+
persist-credentials: false
3033

3134
- uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
3235
with:

.github/workflows/cd.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
name: CD
2+
23
on:
34
push:
45
tags: v*
56
pull_request:
67
paths:
78
- .github/workflows/cd.yml
9+
10+
permissions: {}
11+
812
jobs:
913
pypi-publish:
1014
name: Upload release to PyPI
@@ -17,7 +21,11 @@ jobs:
1721
steps:
1822
- name: Checkout Source
1923
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
with:
25+
persist-credentials: false
2026
- uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
27+
with:
28+
enable-cache: false
2129
- name: Build distributions
2230
shell: bash -l {0}
2331
run: uv build

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
- cron: 0 3 * * 3
1313
workflow_dispatch:
1414

15+
permissions: {}
16+
1517
jobs:
1618
tests:
1719
strategy:
@@ -33,6 +35,8 @@ jobs:
3335
runs-on: ${{ matrix.os }}
3436
steps:
3537
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
38+
with:
39+
persist-credentials: false
3640
- uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
3741
with:
3842
python-version: ${{ matrix.python-version }}
@@ -57,6 +61,8 @@ jobs:
5761

5862
steps:
5963
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
64+
with:
65+
persist-credentials: false
6066
- uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
6167
with:
6268
python-version: ${{ matrix.python-version }}

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ repos:
1515
- id: check-executables-have-shebangs
1616
- id: check-toml
1717

18+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
19+
rev: v1.23.1
20+
hooks:
21+
- id: zizmor
22+
1823
- repo: https://github.com/astral-sh/uv-pre-commit
1924
rev: 0.11.3
2025
hooks:

0 commit comments

Comments
 (0)