Skip to content

Add shared zizmor workflow#3895

Merged
lmolkova merged 6 commits into
open-telemetry:mainfrom
opentelemetrybot:zizmor-rollout/reroll-20260714
Jul 17, 2026
Merged

Add shared zizmor workflow#3895
lmolkova merged 6 commits into
open-telemetry:mainfrom
opentelemetrybot:zizmor-rollout/reroll-20260714

Conversation

@opentelemetrybot

Copy link
Copy Markdown
Contributor

Tracked in open-telemetry/sig-security#293.

Adds zizmor scanning through the OpenTelemetry shared workflow.

The workflow:

  • runs the regular persona on pull requests, pushes to main, and a randomized weekly schedule;
  • uploads results to GitHub code scanning;
  • uses the shared workflow pinned to an immutable commit.

Zizmor remediation

This change also resolves findings from these zizmor rules:

After merge

  1. Confirm the Zizmor workflow succeeds on the merged default-branch commit and its code-scanning analysis has no findings.
  2. Mark the corresponding admin PR ready for review and merge it to require zizmor code scanning.
  3. On the next repository pull request, confirm GitHub reports a required zizmor code-scanning result.

If enforcement unexpectedly blocks a valid change, restore require_zizmor = false in open-telemetry/admin while leaving scanning enabled.

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 repository-wide GitHub Actions security scanning via the OpenTelemetry shared Zizmor reusable workflow, and hardens several existing workflows to reduce credential persistence and potential injection surfaces.

Changes:

  • Add a new .github/workflows/zizmor.yml workflow that runs Zizmor on PRs, pushes to main, and a weekly schedule, uploading SARIF to code scanning.
  • Update multiple workflows to set actions/checkout persist-credentials: false.
  • Refactor several workflow run: steps to pass GitHub context/step outputs via env: variables (and adjust PR-creation flows to use explicit tokens/permissions).

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/workflows/zizmor.yml Adds the shared-workflow-based Zizmor scan with SARIF upload permissions.
.github/workflows/validate-prerelease.yml Disables persisted checkout credentials; moves release tag usage into env.
.github/workflows/reusable-workflow-notification.yml Disables persisted checkout credentials.
.github/workflows/reusable-link-check.yml Disables persisted checkout credentials; refactors base ref / modified-files argument passing.
.github/workflows/prepare-release.yml Disables persisted checkout credentials; moves inputs into env; adjusts PR creation/push auth and app token permissions.
.github/workflows/prepare-new-pr.yml Adds zizmor rule suppression note; disables persisted checkout credentials.
.github/workflows/prepare-new-issue.yml Disables persisted checkout credentials.
.github/workflows/post-release.yml Disables persisted checkout credentials; moves release tag / step output usage into env; adjusts PR creation/push auth and app token permissions.
.github/workflows/podman-check.yml Disables persisted checkout credentials.
.github/workflows/generate-registry-area-labels.yml Disables persisted checkout credentials.
.github/workflows/fossa.yml Disables persisted checkout credentials.
.github/workflows/checks.yml Disables persisted checkout credentials across multiple jobs.
.github/workflows/check-changes-ownership.yml Adds zizmor rule suppression note; disables persisted checkout credentials for base-branch checkout.
.github/workflows/changelog.yml Disables persisted checkout credentials.
.github/workflows/auto-update-spec-repo-links.yml Disables persisted checkout credentials; adjusts PR creation/push auth and app token permissions.

Comment thread .github/workflows/reusable-link-check.yml
@github-project-automation github-project-automation Bot moved this from Untriaged to Needs More Approval in Semantic Conventions Triage Jul 17, 2026
@lmolkova
lmolkova added this pull request to the merge queue Jul 17, 2026
Merged via the queue into open-telemetry:main with commit a6ae90f Jul 17, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip Changelog Label to skip the changelog check

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants