Skip to content

Commit

Permalink
Add OpenSSF Scorecard workflow and badge
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hamann committed Jan 3, 2025
1 parent b00c059 commit e20c5db
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
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: '17 13 * * 3'
push:
branches:
- main

permissions:
contents: read

jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write

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

- name: "Run analysis"
uses: ossf/[email protected]
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ deSEC.io API client
[![Code Quality](https://github.com/s-hamann/desec-dns/actions/workflows/code_quality.yml/badge.svg)](https://github.com/s-hamann/desec-dns/actions/workflows/code_quality.yml)
[![codecov](https://codecov.io/gh/s-hamann/desec-dns/graph/badge.svg?token=D9ZE0GXJN0)](https://codecov.io/gh/s-hamann/desec-dns)
[![Documentation](https://github.com/s-hamann/desec-dns/actions/workflows/docs.yml/badge.svg)](https://s-hamann.github.io/desec-dns/)
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/s-hamann/desec-dns/badge)](https://scorecard.dev/viewer/?uri=github.com/s-hamann/desec-dns)

This is a simple client to manage domains hosted by
[deSEC.io](https://desec.io/) using the deSEC.io API.
Expand Down

0 comments on commit e20c5db

Please sign in to comment.