| 1 |
on: |
| 2 |
workflow_dispatch: |
| 3 |
schedule: |
| 4 |
- cron: 0 7 * * 1 |
| 5 |
push: |
| 6 |
branches: |
| 7 |
- main |
| 8 |
paths: |
| 9 |
- .github/workflows/scorecard-analysis.yml |
| 10 |
pull_request: |
| 11 |
branches: |
| 12 |
- main |
| 13 |
|
| 14 |
permissions: read-all |
| 15 |
|
| 16 |
name: Scorecard analysis |
| 17 |
jobs: |
| 18 |
analysis: |
| 19 |
name: Scorecard analysis |
| 20 |
runs-on: ubuntu-latest |
| 21 |
permissions: |
| 22 |
security-events: write |
| 23 |
id-token: write |
| 24 |
|
| 25 |
steps: |
| 26 |
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 |
| 27 |
with: |
| 28 |
persist-credentials: false |
| 29 |
|
| 30 |
- name: Run analysis |
| 31 |
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a |
| 32 |
with: |
| 33 |
results_file: results.sarif |
| 34 |
results_format: sarif |
| 35 |
publish_results: ${{ github.event_name != 'pull_request' }} |
| 36 |
|
| 37 |
- name: Upload to code-scanning |
| 38 |
if: github.event_name != 'pull_request' |
| 39 |
uses: github/codeql-action/upload-sarif@7188fc363630916deb702c7fdcf4e481b751f97a |
| 40 |
with: |
| 41 |
sarif_file: results.sarif |