Skip to content

[ci] enforce 'zizmor' checks in CI - #7218

Merged
jameslamb merged 2 commits into
masterfrom
ci/add-zizmor
Apr 7, 2026
Merged

jameslamb merged 2 commits into
masterfrom
ci/add-zizmor

Conversation

@jameslamb

Copy link
Copy Markdown
Member

A couple of security-related updates.

Fixes #7191

  • enforces zizmor checks in CI, via pre-commit
  • makes some GitHub Actions config changes:
    • removing all workflow-level permissions and setting least-privilege job-level permissions
    • passing user-writeable data (like workflow inputs) through environment variables to avoid script injection
    • standardizing needs: blocks on one-dependency-per-line instead of [] style (this one is just for style consistency)

Contributes to #7189

  • overhauls SECURITY.md, removing all the Microsoft stuff in favor of our own policy

@github-actions

github-actions Bot commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

Workflow R valgrind tests has been triggered! πŸš€

https://github.com/lightgbm-org/LightGBM/actions/runs/23970666025

Status: success βœ”οΈ

@jameslamb jameslamb changed the title WIP: [ci] enforce 'zizmor' checks in CI [ci] enforce 'zizmor' checks in CI Apr 4, 2026
@jameslamb
jameslamb marked this pull request as ready for review April 4, 2026 05:53

@borchero borchero left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

@jameslamb
jameslamb merged commit d7b76a9 into master Apr 7, 2026
68 checks passed
@jameslamb
jameslamb deleted the ci/add-zizmor branch April 7, 2026 16:52
@jameslamb

Copy link
Copy Markdown
Member Author

Thanks for looking! The last couple weeks of supply-chain attack news reminded me to come back and do this.

@jameslamb jameslamb mentioned this pull request Apr 13, 2026
23 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ci] enforce 'zizmor' checks

2 participants