Exclude workflows from Sonar CPD checks (#25) #29
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
| name: OpenSSF Scorecard | |
| on: | |
| branch_protection_rule: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: "23 3 * * 1" | |
| workflow_dispatch: | |
| permissions: read-all | |
| jobs: | |
| scorecard: | |
| name: OSSF Scorecards | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| permissions: | |
| actions: read | |
| checks: read | |
| contents: read | |
| id-token: write | |
| issues: read | |
| pull-requests: read | |
| security-events: write | |
| statuses: read | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Run Scorecard | |
| uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3 | |
| with: | |
| results_file: scorecard-results.sarif | |
| results_format: sarif | |
| publish_results: true | |
| - name: Upload Scorecard SARIF | |
| uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 | |
| with: | |
| sarif_file: scorecard-results.sarif | |
| - name: Upload Scorecard artifact | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: openssf-scorecard | |
| path: scorecard-results.sarif | |
| if-no-files-found: error |