scorecard.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Scorecard supply-chain security
  2. on:
  3. branch_protection_rule:
  4. schedule:
  5. - cron: '27 2 * * 3'
  6. push:
  7. branches: [ "main" ]
  8. permissions: read-all
  9. jobs:
  10. analysis:
  11. name: Scorecard analysis
  12. runs-on: ubuntu-latest
  13. permissions:
  14. # Needed to upload the results to code-scanning dashboard.
  15. security-events: write
  16. # Needed to publish results and get a badge (see publish_results below).
  17. id-token: write
  18. steps:
  19. - name: "Checkout code"
  20. uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
  21. with:
  22. persist-credentials: false
  23. - name: "Run analysis"
  24. uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
  25. with:
  26. results_file: results.sarif
  27. results_format: sarif
  28. publish_results: true
  29. # Upload the results to GitHub's code scanning dashboard.
  30. - name: "Upload to code-scanning"
  31. uses: github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
  32. with:
  33. sarif_file: results.sarif