Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ same name to a repository to override it.
- A `.github/gh-actions-lock.version` file in the consuming repository
containing the `gh-actions-lock` version to pin, for example `v0.4.0`.
Without it the pre-commit hook fails whenever workflows or actions change.
- **Optional:** Set an environment variable for `ZIZMOR_GITHUB_TOKEN` to enable zizmor online mode. Add this to your shell profile:

```sh
export ZIZMOR_GITHUB_TOKEN="$(gh auth token)"
```

Avoid setting `GH_TOKEN` or `GITHUB_TOKEN` locally, because `gh` uses them
for git authentication. Online mode always run in CI.

## Usage

Expand Down
6 changes: 6 additions & 0 deletions plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ lint:
definitions:
- name: zizmor
files: [github-action, github-workflow]
environment:
# Token enables online mode for zizmor
# Avoid GH_TOKEN/GITHUB_TOKEN locally as gh uses them for git auth
- name: ZIZMOR_GITHUB_TOKEN
value: ${env.ZIZMOR_GITHUB_TOKEN}
optional: true
commands:
# pedantic persona enables the stale-action-refs audit rule
- name: lint
Expand Down