Skip to content

[Infra] Add zizmor scan workflow#4419

Merged
martincostello merged 7 commits into
open-telemetry:mainfrom
martincostello:add-zizmor
May 20, 2026
Merged

[Infra] Add zizmor scan workflow#4419
martincostello merged 7 commits into
open-telemetry:mainfrom
martincostello:add-zizmor

Conversation

@martincostello

Copy link
Copy Markdown
Member

Changes

Add a workflow that scans the repository with zizmor for vulnerabilities in GitHub Actions workflows.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

Add a workflow that scans the repository with zizmor.
@github-actions github-actions Bot added the infra Infra work - CI/CD, code coverage, linters label May 20, 2026
@codecov

codecov Bot commented May 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.94%. Comparing base (2e4984b) to head (d92e485).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4419      +/-   ##
==========================================
- Coverage   76.18%   75.94%   -0.24%     
==========================================
  Files         455      455              
  Lines       18334    18334              
==========================================
- Hits        13968    13924      -44     
- Misses       4366     4410      +44     
Flag Coverage Δ
unittests-Contrib.Shared.Tests 89.95% <ø> (ø)
unittests-Exporter.Geneva 54.70% <ø> (-0.65%) ⬇️
unittests-Exporter.InfluxDB 95.81% <ø> (ø)
unittests-Exporter.OneCollector 94.63% <ø> (ø)
unittests-Extensions 90.78% <ø> (ø)
unittests-Extensions.Enrichment 100.00% <ø> (ø)
unittests-Extensions.Enrichment.AspNetCore 86.27% <ø> (ø)
unittests-Extensions.Enrichment.Http 94.33% <ø> (ø)
unittests-Instrumentation.AWS 85.22% <ø> (ø)
unittests-Instrumentation.AspNet 78.04% <ø> (ø)
unittests-Instrumentation.AspNetCore 87.75% <ø> (ø)
unittests-Instrumentation.Cassandra 92.85% <ø> (ø)
unittests-Instrumentation.ConfluentKafka 78.52% <ø> (ø)
unittests-Instrumentation.ElasticsearchClient 80.60% <ø> (ø)
unittests-Instrumentation.EntityFrameworkCore 81.39% <ø> (ø)
unittests-Instrumentation.EventCounters 77.67% <ø> (ø)
unittests-Instrumentation.GrpcCore 91.34% <ø> (ø)
unittests-Instrumentation.GrpcNetClient 79.09% <ø> (ø)
unittests-Instrumentation.Hangfire 88.91% <ø> (ø)
unittests-Instrumentation.Http 75.24% <ø> (ø)
unittests-Instrumentation.Owin 89.22% <ø> (ø)
unittests-Instrumentation.Process 100.00% <ø> (ø)
unittests-Instrumentation.Quartz 78.76% <ø> (ø)
unittests-Instrumentation.Remoting 66.06% <ø> (ø)
unittests-Instrumentation.Runtime 100.00% <ø> (ø)
unittests-Instrumentation.ServiceFabricRemoting 40.83% <ø> (ø)
unittests-Instrumentation.SqlClient 82.86% <ø> (ø)
unittests-Instrumentation.StackExchangeRedis 93.84% <ø> (ø)
unittests-Instrumentation.Wcf 82.60% <ø> (+0.13%) ⬆️
unittests-OpAmp.Client 84.74% <ø> (-0.58%) ⬇️
unittests-PersistentStorage 67.83% <ø> (-1.47%) ⬇️
unittests-Resources.AWS 74.49% <ø> (ø)
unittests-Resources.Azure 88.31% <ø> (ø)
unittests-Resources.Container 67.34% <ø> (ø)
unittests-Resources.Gcp 71.42% <ø> (ø)
unittests-Resources.Host 72.26% <ø> (ø)
unittests-Resources.OperatingSystem 76.98% <ø> (ø)
unittests-Resources.Process 90.47% <ø> (ø)
unittests-Resources.ProcessRuntime 79.59% <ø> (ø)
unittests-Sampler.AWS 96.39% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 8 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Add more indentation.
@martincostello

martincostello commented May 20, 2026

Copy link
Copy Markdown
Member Author

I just realised this won't run in the PR as it's from a fork.

I guess we'd have to merge it and then fix forward from there until everything's resolved, then make it a required status.

No, I forgot to add the PR trigger... 🤦

@martincostello
martincostello marked this pull request as ready for review May 20, 2026 15:04
@martincostello
martincostello requested a review from a team as a code owner May 20, 2026 15:04
Copilot AI review requested due to automatic review settings May 20, 2026 15:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds an infrastructure/security workflow to scan this repository’s GitHub Actions workflows using zizmor, with a repository-level zizmor configuration file to tune rule behavior.

Changes:

  • Added .github/workflows/zizmor.yml to run zizmor on pushes to main, on a daily schedule, and via manual dispatch.
  • Added .github/zizmor.yml to configure zizmor rules (currently disabling secrets-outside-env).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/zizmor.yml Adds zizmor rule configuration (disables secrets-outside-env).
.github/workflows/zizmor.yml New workflow to run zizmor scanning with SARIF/code-scanning permissions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/zizmor.yml
Comment thread .github/workflows/zizmor.yml Outdated
Comment thread .github/workflows/zizmor.yml Outdated
Grammar do good.
Comment thread .github/workflows/zizmor.yml
Comment thread .github/workflows/zizmor.yml Outdated
Comment thread .github/workflows/zizmor.yml Outdated
Comment thread .github/workflows/zizmor.yml Outdated
- Add more branches for pushes.
- Remove CRON.
Comment thread .github/workflows/zizmor.yml
Mistakenly missed.
Comment thread .github/workflows/zizmor.yml Outdated
Rename job and add a timeout.
@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.

@Kielek Kielek 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.

As I understand, when merged and all issues solved, we can include it into PR as mandatory step?

@martincostello

martincostello commented May 20, 2026

Copy link
Copy Markdown
Member Author

As I understand, when merged and all issues solved, we can include it into PR as mandatory step?

Yep, that's the idea.

I'll start working on addressing the findings once it's merged as follow-ups. I imagine there will be quite a few trivia-ish ones (like naming all steps) or explicitly configuring actions/checkout inputs.

🤞 there's nothing serious to address.

We can also debate suppressions vs. fixes were neccessary.

Comment thread .github/workflows/zizmor.yml Fixed
Comment thread .github/workflows/zizmor.yml Fixed
- Add concurrency.
- Document permissions.
@martincostello
martincostello enabled auto-merge May 20, 2026 16:17
@martincostello
martincostello added this pull request to the merge queue May 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 20, 2026
@martincostello
martincostello added this pull request to the merge queue May 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 20, 2026
@martincostello
martincostello added this pull request to the merge queue May 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 20, 2026
@martincostello
martincostello added this pull request to the merge queue May 20, 2026
- name: Checkout code
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.

why?

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.

More efficient fetch. I forget the exact details, but it's something we used at my old job and I added to my own personal repos, and it's got copy-pasted from there. You can find it in existing workflows in this repo as well.

with:
filter: 'tree:0'
persist-credentials: false
show-progress: false

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.

why?

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.

Reduces noise in CI logs.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 20, 2026
@martincostello
martincostello added this pull request to the merge queue May 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 20, 2026
@martincostello
martincostello added this pull request to the merge queue May 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 20, 2026
@martincostello
martincostello added this pull request to the merge queue May 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 20, 2026
@martincostello
martincostello added this pull request to the merge queue May 20, 2026
Merged via the queue into open-telemetry:main with commit 6f1acd3 May 20, 2026
311 checks passed
@martincostello
martincostello deleted the add-zizmor branch May 20, 2026 20:04
@martincostello martincostello mentioned this pull request May 21, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra Infra work - CI/CD, code coverage, linters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants