Skip to content

Commit f50b1cb

Browse files
authored
Merge pull request #90 from crazy-max/zizmor-root
zizmor: default scan path to repository root
2 parents ae42952 + 53e660c commit f50b1cb

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/.zizmor.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ jobs:
2222
contents: read
2323
security-events: write
2424
with:
25-
version: v1.22.0
26-
path: .
2725
min-severity: medium
2826
min-confidence: medium
2927
persona: pedantic

.github/workflows/zizmor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
path:
1111
required: false
1212
type: string
13-
default: .github
13+
default: .
1414
version:
1515
required: false
1616
type: string

.github/zizmor.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# https://docs.zizmor.sh/configuration/
2+
rules:
3+
secrets-outside-env:
4+
disable: true

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ if it contains new releases, so it's kept in sync with [https://github.com/gohug
340340
### `zizmor`
341341

342342
[`zizmor` reusable workflow](.github/workflows/zizmor.yml) scans GitHub Actions
343-
workflows under `.github` by default with [Zizmor](https://github.com/zizmorcore/zizmor)
343+
workflows in the repository with [Zizmor](https://github.com/zizmorcore/zizmor)
344344
and uploads the SARIF report to GitHub code scanning.
345345

346346
```yaml
@@ -370,7 +370,7 @@ Here are the main inputs for this reusable workflow:
370370
371371
| Name | Type | Default | Description |
372372
|---------------------|--------|-----------|------------------------------------------------------------------------|
373-
| `path` | String | `.github` | Path passed to `zizmor` as the scan target. |
373+
| `path` | String | `.` | Path passed to `zizmor` as the scan target. |
374374
| `version` | String | | Install a specific zizmor version. |
375375
| `collect` | List | | Extra artifact collection modes passed as repeated `--collect=` flags. |
376376
| `min-severity` | String | | Minimum severity to report. |
@@ -380,8 +380,4 @@ Here are the main inputs for this reusable workflow:
380380
| `no-online-audits` | Bool | `false` | Skip online audits while keeping the rest of the scan enabled. |
381381
| `strict-collection` | Bool | `false` | Fail when artifact collection cannot be completed. |
382382

383-
> [!NOTE]
384-
> This workflow scans `.github` by default, not the whole codebase. Override
385-
> `path` if you need to target a different workflow or action directory.
386-
387383
You can find the list of available inputs directly in [the reusable workflow](.github/workflows/zizmor.yml).

0 commit comments

Comments
 (0)