Debian Codegraph @

.github/workflows/scorecards.yml

raw
1 name: Scorecards supply-chain security
2 on:
3 # Only the default branch is supported.
4 branch_protection_rule:
5 schedule:
6 - cron: '17 3 * * 1'
7 push:
8 branches: [ main ]
9
10 # No default permissions
11 permissions: {}
12
13 jobs:
14 analysis:
15 name: Scorecards analysis
16 runs-on: ubuntu-24.04
17 permissions:
18 # Needed to upload the results to code-scanning dashboard.
19 security-events: write
20 id-token: write
21
22 steps:
23 - name: "Checkout code"
24 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
25 with:
26 persist-credentials: false
27
28 - name: "Run analysis"
29 uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc
30 with:
31 results_file: results.sarif
32 results_format: sarif
33 # Publish the results to enable scorecard badges. For more details, see
34 # https://github.com/ossf/scorecard-action#publishing-results.
35 # For private repositories, `publish_results` will automatically be set to `false`,
36 # regardless of the value entered here.
37 publish_results: true
38
39 # Upload the results as artifacts (optional).
40 - name: "Upload artifact"
41 uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
42 with:
43 name: SARIF file
44 path: results.sarif
45 retention-days: 5
46
47 # Upload the results to GitHub's code scanning dashboard.
48 - name: "Upload to code-scanning"
49 uses: github/codeql-action/upload-sarif@d1ba80a13dd99fba24a470575428917156a28b43
50 with:
51 sarif_file: results.sarif