Skip to content

Add zizmor workflow#2856

Merged
jaydeluca merged 2 commits into
open-telemetry:mainfrom
jaydeluca:zizmor
May 22, 2026
Merged

Add zizmor workflow#2856
jaydeluca merged 2 commits into
open-telemetry:mainfrom
jaydeluca:zizmor

Conversation

@jaydeluca
Copy link
Copy Markdown
Member

No description provided.

@jaydeluca jaydeluca requested a review from a team as a code owner May 21, 2026 15:41
Copilot AI review requested due to automatic review settings May 21, 2026 15:41
@github-advanced-security
Copy link
Copy Markdown

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:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.yml to run the zizmorcore/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 permissions only includes security-events: write. Add contents: read here as well (or move it to the workflow-level permissions) so the checkout step has the minimal permissions it needs.
    permissions:
      security-events: write

Comment thread .github/workflows/zizmor.yml Outdated
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'
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.

What does this do?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Copied it from the .NET repo, but it makes the fetch more efficient and only downloads objects/trees as needed.

reference comment

Docs say:

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.

@jaydeluca jaydeluca added this pull request to the merge queue May 22, 2026
Merged via the queue into open-telemetry:main with commit c7c1895 May 22, 2026
34 of 36 checks passed
@jaydeluca jaydeluca deleted the zizmor branch May 22, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants