Skip to content

ci: Fix remaining issues spotted by Zizmor#399

Merged
jfly merged 1 commit into
NixOS:masterfrom
LeSuisse:zizmor-remaining-issues
May 21, 2026
Merged

ci: Fix remaining issues spotted by Zizmor#399
jfly merged 1 commit into
NixOS:masterfrom
LeSuisse:zizmor-remaining-issues

Conversation

@LeSuisse
Copy link
Copy Markdown
Member

A scan using Zizmor with the default persona now comes clean.

Permissions of the release workflow have been limited to only what's needed.

Once the treefmt-nix pin is updated to something more recent it will be possible to activate Zizmor (programs.zizmor.enable = true;) in the Treefmt config (and so have it verified during CI checks).

A scan using Zizmor with the default persona now comes clean.
https://docs.zizmor.sh/

Permissions of the release workflow have been limited to only what's
needed.

Once the treefmt-nix pin is updated to something more recent it will
be possible to activate Zizmor in the Treefmt config (and so have it
verified during CI checks).
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 21, 2026

Nixpkgs diff

Copy link
Copy Markdown
Collaborator

@jfly jfly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Once the treefmt-nix pin is updated to something more recent it will be possible to activate Zizmor (programs.zizmor.enable = true;) in the Treefmt config (and so have it verified during CI checks).

We're getting close to this (#389). Do you mind sending in a PR that adds this? It'll fail right now, but serve as a reminder to enable this once the updates have landed.

@jfly jfly merged commit 403566d into NixOS:master May 21, 2026
2 checks passed
@MattSturgeon
Copy link
Copy Markdown
Contributor

MattSturgeon commented May 21, 2026

We could also use nixpkgs' treefmt.withConfig and configure tools like zizmor and actionlint ourselves, but it is nice that treefmt-nix comes with sane defaults.

EDIT: seems our pinned nixpkgs pre-dates treefmt.withConfig anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants