Add zizmor workflow#2856
Conversation
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
There was a problem hiding this comment.
Pull request overview
Adds a new GitHub Actions workflow to run Zizmor for GitHub Actions security analysis on pushes to main, pull requests, and manual dispatch.
Changes:
- Introduces
.github/workflows/zizmor.ymlto run thezizmorcore/zizmor-action. - Configures the workflow/job permissions intended for security scanning uploads (
security-events: write).
Comments suppressed due to low confidence (1)
.github/workflows/zizmor.yml:16
- The job-level
permissionsonly includessecurity-events: write. Addcontents: readhere as well (or move it to the workflow-level permissions) so the checkout step has the minimal permissions it needs.
permissions:
security-events: write
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
| - name: Checkout repository | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| filter: 'tree:0' |
There was a problem hiding this comment.
Copied it from the .NET repo, but it makes the fetch more efficient and only downloads objects/trees as needed.
Partial clone allows us to avoid downloading such unneeded objects in advance during clone and fetch operations and thereby reduce download times and disk usage. Missing objects can later be "demand fetched" if/when needed.
c7c1895
No description provided.