Skip to content

chore: add security-insights, dependabot, and scorecard - #2335

Open
pankajbaid567 wants to merge 1 commit into
flatcar:mainfrom
pankajbaid567:chore/clomonitor-score-fixes
Open

chore: add security-insights, dependabot, and scorecard#2335
pankajbaid567 wants to merge 1 commit into
flatcar:mainfrom
pankajbaid567:chore/clomonitor-score-fixes

Conversation

@pankajbaid567

Copy link
Copy Markdown

chore: Add Security Insights, Dependabot, and Scorecard to improve CLOMonitor score

This PR implements several security reporting and supply-chain tooling configuration changes to improve the CNCF CLOMonitor score for the Flatcar project as requested in #2317. Previously, CLOMonitor only monitored flatcar/Flatcar and flatcar-website leading to low scores primarily because there are no actual software releases in the docs repository.

To resolve the failing checks for security_insights, dependencies_policy, dependency_update_tool, and openssf_scorecard_badge, this PR introduces a .github/dependabot.yml configuration (which checks for GitHub Actions updates), a SECURITY-INSIGHTS.yml adhering to spec v2.2.0, an OpenSSF Scorecard workflow imported from flatcar/nebraska, and the corresponding Scorecard badge in the README.md.

With these configurations in place, the flatcar/Flatcar repository will reflect appropriate CNCF best practices, acting as the foundation for registering Flatcar's code repositories (flatcar/scripts, etc.) for security scrutiny by CLOMonitor in follow-up PRs.

How to use

Reviewers can validate this PR by checking:

  1. The new SECURITY-INSIGHTS.yml correctly targets spec 2.2.0 and references the adding-new-packages.md as the dependencies policy.
  2. The Dependabot configuration is valid and pointing to github-actions.
  3. The Scorecard workflow aligns with OpenSSF's recommended configuration.

Testing done

  • Validated the GitHub Actions scorecard-analysis.yml workflow syntax.

  • Verified that the SECURITY-INSIGHTS.yml conforms to the 2.2.0 spec schema rules for env-dependencies-policy.

  • Visualized the Scorecard README badge locally to ensure the link properly directs to securityscorecards.dev.

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)

  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

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

This PR adds supply-chain/security reporting configuration to the flatcar/Flatcar repository to improve CNCF CLOMonitor results by introducing Security Insights metadata, Dependabot updates for GitHub Actions, and OpenSSF Scorecard scanning (plus a README badge).

Changes:

  • Add a SECURITY-INSIGHTS.yml manifest intended to satisfy CLOMonitor’s security_insights and dependencies_policy checks.
  • Add .github/dependabot.yml to enable Dependabot for GitHub Actions.
  • Add an OpenSSF Scorecard workflow and a Scorecard badge to the README.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
SECURITY-INSIGHTS.yml Adds a Security Insights manifest intended for CLOMonitor/security metadata consumption.
.github/dependabot.yml Enables Dependabot updates for github-actions.
.github/workflows/scorecard-analysis.yml Adds scheduled OpenSSF Scorecard analysis with SARIF upload.
README.md Adds the OpenSSF Scorecard badge/link.

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

Comment thread SECURITY-INSIGHTS.yml
Comment on lines +1 to +14
header:
schema-version: 2.2.0
expiration-date: 2027-01-01
project-lifecycle:
status: active
security-contacts:
- type: email
value: security@flatcar-linux.org
vulnerability-reporting:
accepts-vulnerability-reports: true
email-contact: security@flatcar-linux.org
dependencies:
env-dependencies-policy:
policy-url: https://github.com/flatcar/Flatcar/blob/main/adding-new-packages.md
Comment on lines +7 to +9
schedule:
# Daily
- cron: '30 1 * * *'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants