Skip to content

ci: add zizmor#19653

Closed
sapphi-red wants to merge 3 commits intovitejs:mainfrom
sapphi-red:ci/add-zizmor
Closed

ci: add zizmor#19653
sapphi-red wants to merge 3 commits intovitejs:mainfrom
sapphi-red:ci/add-zizmor

Conversation

@sapphi-red
Copy link
Copy Markdown
Member

Description

zizmor is a static analysis tool for Actions.
After this PR is merged, we can see the results at https://github.com/vitejs/vite/security/code-scanning.

The workflow file is the same with rolldown/rolldown#3861.

@sapphi-red sapphi-red added the p1-chore Doesn't change code behavior (priority) label Mar 17, 2025
@github-advanced-security
Copy link
Copy Markdown

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Copy link
Copy Markdown
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

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

+1 on adding this, however was CodeQL considered before using a third-party scanner? It's documented to support scanning workflows (though it's still in public preview but I imagine it'll get better from there)

@sapphi-red
Copy link
Copy Markdown
Member Author

sapphi-red commented Mar 17, 2025

however was CodeQL considered before using a third-party scanner?

Oh, I didn't know that CodeQL supports scanning workflow files. Let me check what it does.

@sapphi-red
Copy link
Copy Markdown
Member Author

It seems CodeQL does work, but looking at the results, zizmor has more rules.

@bluwy
Copy link
Copy Markdown
Member

bluwy commented Mar 17, 2025

Comparing codeql rules and zizmor rules, it seems both are on the right path with each their own strengths. I think I'd personally lean on codeql's as a start since it's maintained by github itself but I also wonder what others think about this.

@dominikg
Copy link
Copy Markdown
Contributor

how expensive are the other codeql scans and are they worth it too or would this be limited to workflow files. I am a bit concerned about the "copilot will suggest fixes for findings" part or it.

In general i would prefer using a tool coming from github. a third party scanner tool would have to be pinned and updates would have to be closely checked to avoid a similar issue where a bad update to the scanner extracts secrets.

@okineadev
Copy link
Copy Markdown
Contributor

I think it's better to use CodeQL

@patak-cat
Copy link
Copy Markdown
Member

I vote to align with Rolldown, but I agree with the sentiment that using the option maintained by GitHub would be the best. @sapphi-red maybe you could gather if there was a blocker to using CodeQL in the Rolldown repo and if there is interest in swapping to it if not?

@sapphi-red
Copy link
Copy Markdown
Member Author

I checked Rolldown side and they didn't have any reason not to use CodeQL. Since CodeQL is working fine now, I'll close this PR for now.

@sapphi-red sapphi-red closed this Mar 27, 2025
@sapphi-red sapphi-red deleted the ci/add-zizmor branch March 27, 2025 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p1-chore Doesn't change code behavior (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants