Skip to content

Commit bf62b3a

Browse files
committed
📝 Update zizmor section
1 parent ff607b2 commit bf62b3a

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

docs/packs/publish.rst

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,9 @@ zizmor
410410
~~~~~~
411411

412412
`zizmor <https://docs.zizmor.sh>`_ can detect and resolve many security issues
413-
in typical GitHub Actions CI/CD configurations. zizmor is designed to integrate
414-
with GitHub Actions. A typical GitHub Action we use for zizmor looks like this:
413+
+in typical GitHub Actions CI/CD configurations, such as
414+
+:ref:`token_exfiltration`. zizmor is designed to integrate with GitHub Actions.
415+
+A typical GitHub Action we’ve created for zizmor looks like this:
415416

416417
.. code-block:: yaml
417418
:caption: .github/workflows/zizmor.yml
@@ -447,6 +448,22 @@ with GitHub Actions. A typical GitHub Action we use for zizmor looks like this:
447448
with:
448449
persona: pedantic
449450
451+
However, you can also use zizmor as a pre-commit check to identify issues before
452+
they are pushed:
453+
454+
.. code-block:: yaml
455+
:caption: .pre-commit-config.yaml
456+
457+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
458+
rev: 067260dc5fe6ea86b7551bfd6f8b3ba4e6c93129 # v1.28.0
459+
hooks:
460+
- id: zizmor
461+
462+
zizmor also features a `VS Code integration
463+
<https://marketplace.visualstudio.com/items?itemName=zizmor.zizmor-vscode>`_ and
464+
can be run as an LSP server (``zizmor --lsp``) to provide feedback in any
465+
editor.
466+
450467
.. _add_2fa:
451468

452469
2FA for all development accounts

0 commit comments

Comments
 (0)