Skip to content

ci: migrate OSSF Scorecard to shared workflow - #4478

Draft
opentelemetrybot wants to merge 1 commit into
open-telemetry:mainfrom
opentelemetrybot:scorecard-shared-workflow
Draft

ci: migrate OSSF Scorecard to shared workflow#4478
opentelemetrybot wants to merge 1 commit into
open-telemetry:mainfrom
opentelemetrybot:scorecard-shared-workflow

Conversation

@opentelemetrybot

Copy link
Copy Markdown
Contributor

Migrate OSSF Scorecard to the shared workflow. This limits code scanning alerts from Scorecard to BinaryArtifactsID, DangerousWorkflowID, PinnedDependenciesID, and TokenPermissionsID. See open-telemetry/sig-security#309 for details.

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

Migrates the repository’s OSSF Scorecard GitHub Actions workflow to use the open-telemetry/shared-workflows reusable scorecard.yml workflow, aligning Scorecard execution and SARIF upload behavior with the shared security automation approach.

Changes:

  • Replaces the in-repo Scorecard job steps with a reusable workflow call to open-telemetry/shared-workflows/.github/workflows/scorecard.yml@v0.11.0.
  • Switches the workflow default token permissions to none (permissions: {}) and grants only the needed job-level permissions for the reusable workflow.
  • Enables runner hardening in the shared workflow via use-harden-runner: true.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +19 to +21
uses: open-telemetry/shared-workflows/.github/workflows/scorecard.yml@ee32c419ea90b05286c0cdc24538d970992cf82a # v0.11.0
with:
use-harden-runner: true
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.

2 participants