diff --git a/.github/workflows/scorecard.yaml b/.github/workflows/scorecard.yaml new file mode 100644 index 0000000..8858e7d --- /dev/null +++ b/.github/workflows/scorecard.yaml @@ -0,0 +1,26 @@ +name: 🛡️ scorecard +on: + branch_protection_rule: + schedule: + - cron: "30 7 * * 2" + push: + branches: ["main"] + workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +permissions: {} +jobs: + analysis: + name: 🛡️ Scorecard analysis + if: github.repository == 'tox-dev/action-pre-commit-uv' + permissions: + actions: read # read workflow runs for the Packaging check + checks: read # read check runs for the CI-Tests and SAST checks + contents: read # check out and scan the repository + id-token: write # authenticate the results published to the scorecard API + issues: read # read issue activity for the Maintained check + pull-requests: read # read reviews for the Code-Review check + security-events: write # upload the SARIF results to code scanning + statuses: read # read commit statuses for the CI-Tests check + uses: tox-dev/github-workflows/.github/workflows/scorecard.yaml@e0ddedd1f8d78ed93d5eb8290f37675f6092bddf diff --git a/README.md b/README.md index 5511e7c..911091f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/tox-dev/action-pre-commit-uv/main.svg)](https://results.pre-commit.ci/latest/github/tox-dev/action-pre-commit-uv/main) [![Build Status](https://github.com/tox-dev/action-pre-commit-uv/actions/workflows/main.yml/badge.svg)](https://github.com/tox-dev/action-pre-commit-uv/actions) +[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/tox-dev/action-pre-commit-uv/badge)](https://scorecard.dev/viewer/?uri=github.com/tox-dev/action-pre-commit-uv) +[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/16255/badge)](https://www.bestpractices.dev/projects/16255) # tox-dev/action-pre-commit-uv