aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/codespell.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/codespell.yml')
-rw-r--r--.github/workflows/codespell.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml
new file mode 100644
index 000000000..aab0674ec
--- /dev/null
+++ b/.github/workflows/codespell.yml
@@ -0,0 +1,38 @@
1name: Codespell
2
3on:
4 push:
5 paths:
6 - 'src/**'
7 - 'test/**'
8 pull_request:
9 paths:
10 - 'src/**'
11 - 'test/**'
12
13permissions: # added using https://github.com/step-security/secure-workflows
14 contents: read
15
16jobs:
17 codespell:
18 runs-on: ubuntu-22.04
19 steps:
20 - name: Harden Runner
21 uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
22 with:
23 egress-policy: block
24 allowed-endpoints: >
25 archive.ubuntu.com:80
26 azure.archive.ubuntu.com:80
27 github.com:443
28 packages.microsoft.com:443
29 ppa.launchpadcontent.net:443
30 security.ubuntu.com:80
31 - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
32 - name: update package information
33 run: sudo apt-get update -qy
34 - name: install dependencies
35 run: sudo apt-get install -qy codespell
36 - run: codespell --version
37 - name: codespell
38 run: make codespell