This repository was archived by the owner on Jul 29, 2026. It is now read-only.
ci: update trunk.yaml #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================================================= | ||
| # OpenSSF Scorecard — Automated security best practices check | ||
| # ============================================================================= | ||
| # Runs weekly + on main to track supply chain security posture | ||
| # Free for public repos, adds security badge | ||
| # ============================================================================= | ||
| name: OpenSSF Scorecard | ||
| on: | ||
| branch_protection_rule: | ||
| schedule: | ||
| - cron: '25 4 * * 1' # Weekly Monday 4:25 UTC | ||
| push: | ||
| branches: [main] | ||
| permissions: read-all | ||
| jobs: | ||
| analysis: | ||
| name: Scorecard analysis | ||
| runs-on: ubuntu-latest | ||
| security: | ||
| permissions: read-all | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Run Scorecard | ||
| uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0 | ||
| with: | ||
| results_file: results.sarif | ||
| results_format: sarif | ||
| publish_results: true | ||
| - name: Upload SARIF | ||
| uses: github/codeql-action/upload-sarif@fca7ace96b7d713c7035881819e25a804e825323 # v3.28.18 | ||
| with: | ||
| sarif_file: results.sarif | ||
| - name: Upload artifact | ||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | ||
| with: | ||
| name: SARIF file | ||
| path: results.sarif | ||
| retention-days: 5 | ||