Skip to content

Commit 6b20240

Browse files
authored
Merge pull request #2381 from BarbUk/zizmor
2 parents 69c4dcb + 0f905c7 commit 6b20240

3 files changed

Lines changed: 40 additions & 1 deletion

File tree

.github/workflows/action.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/workflows/*'
7+
8+
pull_request:
9+
paths:
10+
- '.github/workflows/*'
11+
12+
permissions: {}
13+
14+
jobs:
15+
zizmor:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
security-events: write
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
22+
with:
23+
persist-credentials: false
24+
25+
- name: Run zizmor 🌈
26+
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: CI
33
# Triggers the workflow on push or pull request events
44
on: [push, pull_request]
55

6+
permissions: {}
7+
68
jobs:
79
bats-test:
810
strategy:
@@ -13,6 +15,8 @@ jobs:
1315

1416
steps:
1517
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18+
with:
19+
persist-credentials: false
1620
- name: Install greadlink
1721
if: startsWith(runner.os, 'macOS')
1822
run: brew install coreutils
@@ -29,6 +33,8 @@ jobs:
2933

3034
steps:
3135
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
36+
with:
37+
persist-credentials: false
3238
- name: Set up Python
3339
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3440
with:
@@ -43,6 +49,8 @@ jobs:
4349

4450
steps:
4551
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
52+
with:
53+
persist-credentials: false
4654
- name: Set up Go
4755
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
4856
with:
@@ -76,6 +84,7 @@ jobs:
7684
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7785
with:
7886
fetch-depth: 0
87+
persist-credentials: false
7988

8089
- id: ShellCheck
8190
name: Differential ShellCheck

.pre-commit-config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ repos:
2424
- repo: https://github.com/Lucas-C/pre-commit-hooks
2525
rev: ad1b27d73581aa16cca06fc4a0761fc563ffe8e8 # frozen: v1.5.6
2626
hooks:
27-
# - id: forbid-crlf
2827
- id: remove-crlf
2928
exclude: ".bat$"
29+
# Github action
30+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
31+
rev: ea2eb407b4cbce87cf0d502f36578950494f5ac9 # frozen: v1.23.1
32+
hooks:
33+
- id: zizmor
3034
- repo: local
3135
hooks:
3236
- id: dot-sh

0 commit comments

Comments
 (0)