diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml new file mode 100644 index 0000000..97a6e59 --- /dev/null +++ b/.github/workflows/scorecard.yml @@ -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/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 diff --git a/README.md b/README.md index 34f1c91..9de73a0 100644 --- a/README.md +++ b/README.md @@ -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.