Skip to content

fix: improve OpenSSF Scorecard score#108

Merged
smitesh-sutaria merged 2 commits into
mainfrom
copilot/improve-openssf-scorecard
Jun 24, 2026
Merged

fix: improve OpenSSF Scorecard score#108
smitesh-sutaria merged 2 commits into
mainfrom
copilot/improve-openssf-scorecard

Conversation

Copilot AI commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Several OpenSSF Scorecard checks were failing or scoring low (overall: 6.3/10). This PR addresses the highest-impact actionable items.

Token-Permissions (0 → 10)

kubevirt-rpm-link-validator.yml had contents: write and pull-requests: write at the top level, violating least-privilege. Moved to job-level; top-level set to permissions: {}.

# before
permissions:
  contents: write
  pull-requests: write
jobs:
  validate-and-fix-rpm-links:

# after
permissions: {}
jobs:
  validate-and-fix-rpm-links:
    permissions:
      contents: write
      pull-requests: write

Branch-Protection

Added .github/CODEOWNERS — scorecard flagged "codeowners review is required but no codeowners file found", which was suppressing the branch protection score.

Vulnerabilities (8 known → fewer)

Updated Go indirect dependencies in device-plugins-for-kubernetes to address 8 GO-2026-* advisories:

Package Before After
golang.org/x/net v0.49.0 v0.56.0
golang.org/x/sys v0.40.0 v0.46.0
golang.org/x/text v0.33.0 v0.38.0
golang.org/x/crypto v0.47.0 v0.53.0
google.golang.org/grpc v1.79.3 v1.81.1

- Fix Token-Permissions: move contents/pull-requests write permissions
  from top-level to job-level in kubevirt-rpm-link-validator.yml
- Add .github/CODEOWNERS file to improve Branch-Protection score
- Update Go indirect dependencies to address known vulnerabilities:
  golang.org/x/net v0.49.0→v0.56.0, golang.org/x/sys v0.40.0→v0.46.0,
  golang.org/x/text v0.33.0→v0.38.0, golang.org/x/crypto v0.47.0→v0.53.0
- Update google.golang.org/grpc v1.79.3→v1.81.1
@smitesh-sutaria

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

@smitesh-sutaria
smitesh-sutaria marked this pull request as ready for review June 23, 2026 08:38

Copilot AI commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

The merge conflicts have already been resolved — commit e5b6bec merged main (including the google.golang.org/grpc bump from #107) into this branch. The branch is fully up to date with main and CI checks are now running.

@smitesh-sutaria
smitesh-sutaria merged commit 422f01e into main Jun 24, 2026
13 checks passed
@smitesh-sutaria
smitesh-sutaria deleted the copilot/improve-openssf-scorecard branch June 24, 2026 03:55
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