Debian Codegraph @

.github/workflows/scorecards.yml

raw
1 name: 'Scorecard'
2 on:
3 branch_protection_rule: {}
4 schedule:
5 - cron: '20 7 * * 2'
6 push:
7 branches:
8 - 'master'
9 permissions: 'read-all'
10 jobs:
11 analysis:
12 name: 'Analysis'
13 runs-on: 'ubuntu-latest'
14 permissions:
15 security-events: 'write'
16 id-token: 'write'
17 contents: 'read'
18 actions: 'read'
19 steps:
20 - name: 'Harden Runner'
21 uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1
22 with:
23 egress-policy: 'audit'
24 - name: 'Checkout'
25 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26 with:
27 persist-credentials: false
28 - name: 'Run'
29 uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
30 with:
31 results_file: 'results.sarif'
32 results_format: 'sarif'
33 publish_results: true
34 - name: 'Upload'
35 uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
36 with:
37 name: 'SARIF file'
38 path: 'results.sarif'
39 retention-days: 5
40 - name: 'Upload to Code Scanning Dashboard'
41 uses: github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
42 with:
43 sarif_file: 'results.sarif'