Skip to content

Commit

Permalink
Merge pull request #866 from viccuad/main
Browse files Browse the repository at this point in the history
ci: Add OpenSSF Scorecard workflow and badge
  • Loading branch information
viccuad authored Aug 12, 2024
2 parents 46c69bd + 733f0bb commit 51fd16c
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/openssf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Scorecards supply-chain security
on:
push:
branches: [main]

# Declare default permissions as read only.
permissions: read-all

jobs:
analysis:
name: Scorecards analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Used to receive a badge. (Upcoming feature)
id-token: write

steps:
- name: "Checkout code"
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
with:
results_file: results.sarif
results_format: sarif
# Publish the results for public repositories to enable scorecard badges. For more details, see
# https://github.com/ossf/scorecard-action#publishing-results.
publish_results: true
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
[![Stable](https://img.shields.io/badge/status-stable-brightgreen?style=for-the-badge)](https://github.com/kubewarden/community/blob/main/REPOSITORIES.md#stable)
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/kubewarden-defaults)](https://artifacthub.io/packages/helm/kubewarden/kubewarden-defaults)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/6626/badge)](https://bestpractices.coreinfrastructure.org/projects/6626)
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/6626/badge)](https://www.bestpractices.dev/projects/6626)
[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B25850%2Fgithub.com%2Fkubewarden%2Fpolicy-server.svg?type=shield)](https://app.fossa.com/projects/custom%2B25850%2Fgithub.com%2Fkubewarden%2Fpolicy-server?ref=badge_shield)
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/kubewarden/policy-server/badge)](https://scorecard.dev/viewer/?uri=github.com/kubewarden/policy-server)

> **Note well:** don't forget to checkout [Kubewarden's documentation](https://docs.kubewarden.io)
> for more information
Expand Down Expand Up @@ -231,3 +233,7 @@ The Kubewarden team is security conscious. You can find our [threat model
assessment](https://docs.kubewarden.io/security/threat-model) and
[responsible disclosure approach](https://docs.kubewarden.io/security/disclosure)
in our Kubewarden docs.

## Changelog

See [GitHub Releases content](https://github.com/kubewarden/policy-server/releases).
61 changes: 61 additions & 0 deletions SECURITY_INSIGHTS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
header:
schema-version: 1.0.0
last-updated: "2024-08-12"
last-reviewed: "2023-08-12"
expiration-date: "2025-10-01T01:00:00.000Z"
project-url: https://github.com/kubewarden/policy-server/
changelog: https://github.com/kubewarden/policy-server/releases/latest
license: https://github.com/kubewarden/policy-server/blob/main/LICENSE
project-lifecycle:
bug-fixes-only: false
core-maintainers:
- https://github.com/kubewarden/community?tab=readme-ov-file#maintainers
roadmap: https://github.com/kubewarden/community?tab=readme-ov-file#roadmap
status: active
contribution-policy:
accepts-pull-requests: true
accepts-automated-pull-requests: true
contributing-policy: https://github.com/kubewarden/policy-server/blob/main/CONTRIBUTING.md
code-of-conduct: https://github.com/kubewarden/community/blob/main/CODE_OF_CONDUCT.md
documentation:
- https://docs.kubewarden.io
distribution-points:
- https://github.com/kubewarden/policy-server/
- https://artifacthub.io/packages/helm/kubewarden/kubewarden-defaults
- https://github.com/orgs/kubewarden/packages?repo_name=helm-charts
security-artifacts:
threat-model:
threat-model-created: true
evidence-url:
- https://docs.kubewarden.io/reference/threat-model
security-testing:
- tool-type: sca
tool-name: Dependabot
tool-version: latest
integration:
ad-hoc: false
ci: true
before-release: true
comment: |
Dependabot is enabled for this repo.
security-contacts:
- type: website
value: https://docs.kubewarden.io/disclosure
vulnerability-reporting:
accepts-vulnerability-reports: true
security-policy: https://github.com/kubewarden/community/blob/main/SECURITY.md
email-contact: [email protected]
comment: |
The first and best way to report a vulnerability is by using private security issues in GitHub or opening an issue on Github. We are also available on the Kubernetes Slack in the #kubewaden-dev channel.
dependencies:
third-party-packages: true
dependencies-lists:
- https://github.com/kubewarden/policy-server/blob/main/Cargo.lock
sbom:
- sbom-file: https://github.com/kubewarden/policy-server/releases/latest/download/policy-server-sbom-adm64.spdx
sbom-format: SPDX
sbom-url: https://github.com/anchore/sbom-action
dependencies-lifecycle:
policy-url: https://github.com/kubewarden/community/blob/main/SECURITY.md#security-patch-policy
env-dependencies-policy:
policy-url: https://github.com/kubewarden/community/blob/main/SECURITY.md#dependency-policy

0 comments on commit 51fd16c

Please sign in to comment.