Replace switch with if/else to avoid potential JIT bug. #821
This file contains 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
name: Scorecards | |
on: | |
branch_protection_rule: | |
schedule: | |
- cron: '36 17 * * 5' | |
push: | |
branches: [ "master" ] | |
permissions: read-all | |
jobs: | |
analysis: | |
name: Scorecards analysis | |
runs-on: ubuntu-24.04 | |
permissions: | |
security-events: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | |
with: | |
persist-credentials: false | |
- uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0 | |
with: | |
results_file: results.sarif | |
results_format: sarif | |
publish_results: true | |
- uses: github/codeql-action/upload-sarif@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6 | |
with: | |
sarif_file: results.sarif |