diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml new file mode 100644 index 0000000..c8784c5 --- /dev/null +++ b/.github/workflows/scorecard.yml @@ -0,0 +1,36 @@ +name: Scorecard + +on: + workflow_dispatch: + pull_request: + push: + branches: + - main + +permissions: read-all + +jobs: + scorecard: + name: Run OpenSSF Scorecard + runs-on: ubuntu-latest + + permissions: + contents: read + id-token: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Run OpenSSF Scorecard + uses: ossf/scorecard-action@v2.4.0 + with: + results_format: json + results_file: results.json + publish_results: false + + - name: Upload Scorecard artifact + uses: actions/upload-artifact@v4 + with: + name: scorecard-results + path: results.json \ No newline at end of file