Skip to content

ci: pin OSV scanner install#3486

Draft
CharlVS wants to merge 2 commits into
devfrom
fix/failing-osv-scan
Draft

ci: pin OSV scanner install#3486
CharlVS wants to merge 2 commits into
devfrom
fix/failing-osv-scan

Conversation

@CharlVS
Copy link
Copy Markdown
Collaborator

@CharlVS CharlVS commented May 5, 2026

Summary

  • Pin the OSV scanner install to v2.3.5 instead of resolving @latest during CI.
  • Set the workflow Go version to 1.26.2 so the pinned scanner install does not depend on automatic toolchain switching.

Root cause

The failing OSV job installed github.com/google/osv-scanner/v2/cmd/osv-scanner@latest, which currently resolves to v2.3.6. That module tag includes a replace directive in go.mod, and go install package@version rejects modules with replace directives before the scan can run.

Validation

  • git diff --check
  • YAML parse check for .github/workflows/osv-scan.yml
  • flutter analyze attempted; it fails on the existing analyzer backlog under SDK product/example directories after submodule initialization, unrelated to this workflow-only change.

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.

1 participant