ci: add shared security scanning workflow#382
Conversation
|
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:
For more information about GitHub Code Scanning, check out the documentation. |
There was a problem hiding this comment.
Pull request overview
Adds repository security scanning via the OpenTelemetry shared Zizmor reusable workflow, and tightens GitHub Actions checkout token handling to reduce credential persistence risk. Also introduces a Dependabot “cooldown” window to delay non-security updates.
Changes:
- Add
.github/workflows/zizmor.ymlto run Zizmor and upload SARIF results via the shared workflow pinned to an immutable commit. - Set
actions/checkouttopersist-credentials: falseacross CI and release-dev workflows. - Add Dependabot
cooldown.default-days: 7for bothuvandgithub-actionsecosystems.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/zizmor.yml | Adds shared Zizmor code-scanning workflow invocation with minimal permissions. |
| .github/workflows/release-dev.yml | Disables persisted checkout credentials for the release-dev job. |
| .github/workflows/ci.yml | Disables persisted checkout credentials across jobs and slightly hardens scenario path handling via env vars. |
| .github/dependabot.yml | Adds a 7-day cooldown to delay non-security Dependabot version updates. |
|
This PR has review comments. Review suggestions, whether from maintainers or automated reviewers, aren't always correct or required. Please evaluate each comment on its merits, then make sure each thread has a clear outcome. For example, link to the commit if you applied a suggestion, explain why it wasn't applied, or ask a follow-up question. Automation flags a PR for human review once every review thread has a reply or is marked as resolved. Status across open PRs is visible on the pull request dashboard. |
Tracked in open-telemetry/sig-security#293.
Adds zizmor scanning through the OpenTelemetry shared workflow.
The workflow:
regularpersona on pull requests, pushes tomain, and a randomized weekly schedule;After merge
zizmorcode-scanning result.If enforcement unexpectedly blocks a valid change, restore
require_zizmor = falseinopen-telemetry/adminwhile leaving scanning enabled.