name: OSSF Scorecard on: branch_protection_rule: schedule: - cron: "0 7 * * 1" push: branches: ["master"] workflow_dispatch: permissions: read-all jobs: analysis: name: scorecard runs-on: ubuntu-latest permissions: security-events: write id-token: write contents: read steps: - uses: actions/checkout@v6 with: persist-credentials: false - name: Run analysis uses: ossf/scorecard-action@v2.4.3 with: results_file: results.sarif results_format: sarif # Flip to true once we're happy with the score and want the badge. publish_results: false - name: Upload SARIF artifact uses: actions/upload-artifact@v7 with: name: scorecard-sarif path: results.sarif retention-days: 14 - name: Upload SARIF to Security tab uses: github/codeql-action/upload-sarif@v4 with: sarif_file: results.sarif