Skip to content

Security/openssf scorecard improvements#308

Merged
cjimti merged 6 commits into
masterfrom
security/openssf-scorecard-improvements
Dec 27, 2025
Merged

Security/openssf scorecard improvements#308
cjimti merged 6 commits into
masterfrom
security/openssf-scorecard-improvements

Conversation

@cjimti

@cjimti cjimti commented Dec 27, 2025

Copy link
Copy Markdown
Member

Description

Improve OpenSSF Scorecard score from 4.3/10 to an estimated 7-8/10 by addressing multiple security best practices.

Changes:

  • Pin Docker base images to SHA256 digests (alpine, ubuntu)
  • Add CodeQL workflow for static code analysis (SAST)
  • Add Dependabot configuration for automated dependency updates
  • Pin all GitHub Actions to commit SHAs for reproducibility
  • Add SLSA provenance generation for release artifacts

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • Test improvement (new or updated tests)
  • Documentation update
  • Stability/performance improvement
  • Build/CI improvement

Note: New features are developed by maintainers only. See CONTRIBUTING.md for details.

Related Issues

Addresses OpenSSF Scorecard findings: https://scorecard.dev/viewer/?uri=github.com/txn2/kubefwd

Testing

  • Ran go test ./... locally
  • Tested manually with a Kubernetes cluster
  • Added new tests for changes (if applicable)

CI/Workflow validation:

  • CodeQL workflow syntax validated
  • Dependabot config follows GitHub schema
  • GoReleaser config unchanged (signing already configured)

Checklist

  • My code follows the project's style guidelines (go fmt, go vet)
  • I have read CONTRIBUTING.md
  • I have updated documentation if needed
  • This PR is focused and does not include unrelated changes

Screenshots/Logs (if applicable)

Before (4.3/10):

Check Score
Pinned-Dependencies 0
SAST 0
Signed-Releases 0
Dependency-Update-Tool -1

After (expected 7-8/10):

Check Expected Score
Pinned-Dependencies 10
SAST 10
Signed-Releases 10
Dependency-Update-Tool 10

cjimti and others added 6 commits December 27, 2025 00:06
Improves OpenSSF Scorecard Pinned-Dependencies check by pinning
container images to specific digests instead of mutable tags.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Improves OpenSSF Scorecard SAST check by running CodeQL analysis
on pushes, pull requests, and weekly schedule.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Configures weekly updates for Go modules, GitHub Actions, and Docker
images. Improves OpenSSF Scorecard Dependency-Update-Tool check.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Pin all GitHub Actions to specific commit SHAs for reproducibility
- Add SLSA provenance generation for release artifacts
- Improves OpenSSF Scorecard checks: Pinned-Dependencies, Signed-Releases

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Use correct commit SHA for codecov/codecov-action@v5.4.3

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@cjimti cjimti merged commit 601393d into master Dec 27, 2025
10 checks passed
@cjimti cjimti deleted the security/openssf-scorecard-improvements branch December 27, 2025 08:30
@cjimti cjimti mentioned this pull request Dec 27, 2025
12 tasks
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