Debian Codegraph @

.github/workflows/scorecard.yml

raw
1 name: Scorecard supply-chain security
2 on:
3 # For Branch-Protection check. Only the default branch is supported. See
4 # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
5 branch_protection_rule:
6 # To guarantee Maintained check is occasionally updated. See
7 # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
8 schedule:
9 - cron: '32 3 * * 1'
10 push:
11 branches: [ "main" ]
12
13 # Declare default permissions as read only.
14 permissions: read-all
15
16 jobs:
17 analysis:
18 name: Scorecard analysis
19 runs-on: ubuntu-latest
20 permissions:
21 # Needed to upload the results to code-scanning dashboard.
22 security-events: write
23 # Needed to publish results and get a badge (see publish_results below).
24 id-token: write
25
26 steps:
27 - name: "Checkout code"
28 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
29 with:
30 persist-credentials: false
31
32 - name: "Run analysis"
33 uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
34 with:
35 results_file: results.sarif
36 results_format: sarif
37
38 # Public repositories:
39 # - Publish results to OpenSSF REST API for easy access by consumers
40 # - Allows the repository to include the Scorecard badge.
41 # - See https://github.com/ossf/scorecard-action#publishing-results.
42 publish_results: true
43
44 # Upload the results as artifacts (optional)
45 - name: "Upload artifact"
46 uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
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@4fa2a7953630fd2f3fb380f21be14ede0169dd4f # v3.25.12
55 with:
56 sarif_file: results.sarif