Debian Codegraph @

.github/workflows/scorecard.yml

raw
1 name: Scorecard supply-chain security
2
3 on:
4 # For Branch-Protection check. Only the default branch is supported. See
5 # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
6 branch_protection_rule:
7 # To guarantee Maintained check is occasionally updated. See
8 # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
9 schedule:
10 - cron: '22 1 * * 0'
11 push:
12 branches: [ "main" ]
13
14 # Declare default permissions as read only.
15 permissions: read-all
16
17 jobs:
18 analysis:
19 name: Scorecard analysis
20 runs-on: ubuntu-latest
21 permissions:
22 # Needed to upload the results to code-scanning dashboard.
23 security-events: write
24 # Needed to publish results and get a badge (see publish_results below).
25 id-token: write
26 # Uncomment the permissions below if installing in a private repository.
27 # contents: read
28 # actions: read
29
30 steps:
31 - name: "Checkout code"
32 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33 with:
34 persist-credentials: false
35
36 - name: "Run analysis"
37 uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
38 with:
39 results_file: results.sarif
40 results_format: sarif
41 publish_results: true
42
43 # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
44 # format to the repository Actions tab.
45 - name: "Upload artifact"
46 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
47 with:
48 name: SARIF file
49 path: results.sarif
50 retention-days: 5
51
52 # Upload the results to GitHub's code scanning dashboard.
53 - name: "Upload to code-scanning"
54 uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
55 with:
56 sarif_file: results.sarif