Skip to content

ci: colocate zizmor suppression rationales#263

Merged
trask merged 2 commits into
open-telemetry:mainfrom
opentelemetrybot:zizmor-remediation/zero-findings-20260720
Jul 22, 2026
Merged

ci: colocate zizmor suppression rationales#263
trask merged 2 commits into
open-telemetry:mainfrom
opentelemetrybot:zizmor-remediation/zero-findings-20260720

Conversation

@opentelemetrybot

@opentelemetrybot opentelemetrybot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #260.

Moves each cache-poisoning suppression and its rationale inside the affected Gradle setup step:

- name: Set up gradle
  # zizmor: ignore[cache-poisoning] This workflow analyzes release branches
  # but does not build or publish release artifacts.

This makes the relationship clear to reviewers while keeping the directive within the YAML feature span that zizmor associates with the finding. There is no workflow behavior change.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR remediates zizmor findings across this repository’s GitHub Actions workflows by reducing unnecessary credential persistence during actions/checkout, and by adding/adjusting zizmor ignore annotations where credentials or caching behavior is intentionally required.

Changes:

  • Set actions/checkout to persist-credentials: false in multiple workflows to avoid persisting the repository token in the git config.
  • Add a targeted zizmor ignore for persist-credentials: true where branch pushes require credentials (prepare-release-branch.yml).
  • Restructure zizmor ignore comments for Gradle cache-related findings to be clearer and more explicit.

Reviewed changes

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

Show a summary per file
File Description
.github/workflows/release.yml Disables persisted checkout credentials during release workflow execution.
.github/workflows/prepare-release-branch.yml Disables persisted creds for prereqs; keeps creds enabled (with zizmor ignore) for the branch-push job.
.github/workflows/issue-management-feedback-label.yml Disables persisted checkout credentials for the issue-label automation workflow.
.github/workflows/gradle-wrapper-validation.yml Disables persisted checkout credentials while validating the wrapper.
.github/workflows/fossa.yml Disables persisted checkout credentials for the FOSSA scan workflow.
.github/workflows/codeql.yml Disables persisted checkout credentials; improves clarity of zizmor ignore commentary for Gradle caching.
.github/workflows/build.yml Disables persisted checkout credentials; adjusts zizmor ignore commentary for Gradle caching.
.github/workflows/build-pull-request.yml Disables persisted checkout credentials in PR build workflow.
.github/workflows/build-daily.yml Disables persisted checkout credentials in scheduled build/publish workflow.

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

Comment thread .github/workflows/issue-management-feedback-label.yml
Comment thread .github/workflows/prepare-release-branch.yml
@opentelemetrybot
opentelemetrybot force-pushed the zizmor-remediation/zero-findings-20260720 branch from 139e868 to 204a174 Compare July 22, 2026 18:07
@opentelemetrybot opentelemetrybot changed the title ci: remediate zizmor findings ci: colocate zizmor suppression rationales Jul 22, 2026
@opentelemetrybot opentelemetrybot changed the title ci: colocate zizmor suppression rationales ci: remediate zizmor findings Jul 22, 2026
@trask
trask requested a review from Copilot July 22, 2026 18:09
@opentelemetrybot opentelemetrybot changed the title ci: remediate zizmor findings ci: colocate zizmor suppression rationales Jul 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

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

@opentelemetrybot
opentelemetrybot marked this pull request as ready for review July 22, 2026 18:17
@opentelemetrybot
opentelemetrybot requested review from a team as code owners July 22, 2026 18:17
@trask
trask merged commit 26036c1 into open-telemetry:main Jul 22, 2026
9 checks passed
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.

3 participants