Skip to content

Commit

Permalink
Ossf/gha scorecard (#7)
Browse files Browse the repository at this point in the history
👷 support for OpenSSF Scorecard

💬 updated community health pages
  • Loading branch information
gimlichael authored Nov 16, 2024
1 parent 0bb116a commit 499d4b4
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Swashbuckle.AspNetCore Ext. CI/CD Pipeline
on:
pull_request:
branches: [main]
paths-ignore:
- .codecov
- .docfx
- .github
- .nuget
- '**.md'
- .codecov/**
- .docfx/**
- .nuget/**
- '**/*.md'
workflow_dispatch:
inputs:
configuration:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Scorecard supply-chain security
on:
branch_protection_rule:
schedule:
- cron: '45 17 * * 2'
push:
branches: [ "main" ]

permissions: read-all

jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
security-events: write
id-token: write

steps:
- name: "Checkout code"
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@v2.4.0
with:
results_file: results.sarif
results_format: sarif
publish_results: true

- name: "Upload artifact"
uses: actions/upload-artifact@v4
with:
name: SARIF file
path: results.sarif
retention-days: 5

- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Extensions for Swashbuckle.AspNetCore API

[![Swashbuckle.AspNetCore Ext. CI/CD Pipeline](https://github.com/codebeltnet/swashbuckle-aspnetcore/actions/workflows/pipelines.yml/badge.svg)](https://github.com/codebeltnet/swashbuckle-aspnetcore/actions/workflows/pipelines.yml) [![codecov](https://codecov.io/gh/codebeltnet/swashbuckle-aspnetcore/graph/badge.svg?token=BN2UhFM3bb)](https://codecov.io/gh/codebeltnet/swashbuckle-aspnetcore) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=swashbuckle-aspnetcore&metric=alert_status)](https://sonarcloud.io/dashboard?id=swashbuckle-aspnetcore) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=swashbuckle-aspnetcore&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=swashbuckle-aspnetcore) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=swashbuckle-aspnetcore&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=swashbuckle-aspnetcore) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=swashbuckle-aspnetcore&metric=security_rating)](https://sonarcloud.io/dashboard?id=swashbuckle-aspnetcore)
[![Swashbuckle.AspNetCore Ext. CI/CD Pipeline](https://github.com/codebeltnet/swashbuckle-aspnetcore/actions/workflows/pipelines.yml/badge.svg)](https://github.com/codebeltnet/swashbuckle-aspnetcore/actions/workflows/pipelines.yml) [![codecov](https://codecov.io/gh/codebeltnet/swashbuckle-aspnetcore/graph/badge.svg?token=BN2UhFM3bb)](https://codecov.io/gh/codebeltnet/swashbuckle-aspnetcore) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=swashbuckle-aspnetcore&metric=alert_status)](https://sonarcloud.io/dashboard?id=swashbuckle-aspnetcore) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=swashbuckle-aspnetcore&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=swashbuckle-aspnetcore) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=swashbuckle-aspnetcore&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=swashbuckle-aspnetcore) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=swashbuckle-aspnetcore&metric=security_rating)](https://sonarcloud.io/dashboard?id=swashbuckle-aspnetcore) [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/codebeltnet/swashbuckle-aspnetcore/badge)](https://scorecard.dev/viewer/?uri=github.com/codebeltnet/swashbuckle-aspnetcore)

An open-source project (MIT license) that targets and complements the [Swashbuckle.AspNetCore](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) Swagger tooling for APIs built with ASP.NET Core. It aims to provide a uniform and convenient developer experience when working with Swagger 2.0 and OpenAPI 3.0.

Expand Down

0 comments on commit 499d4b4

Please sign in to comment.