Debian Codegraph @

.github/workflows/scorecard.yml

raw symbols SCIP
1 name: Scorecard supply-chain security
2 on:
3 workflow_dispatch:
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: '20 5 * * 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
27 steps:
28 - name: "Checkout code"
29 uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
30 with:
31 persist-credentials: false
32
33 - name: "Run analysis"
34 uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
35 with:
36 results_file: results.sarif
37 results_format: sarif
38 # (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
39 # - you want to enable the Branch-Protection check on a *public* repository
40 # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
41 # repo_token: ${{ secrets.SCORECARD_TOKEN }}
42
43 # Public repositories:
44 # - Publish results to OpenSSF REST API for easy access by consumers
45 # - Allows the repository to include the Scorecard badge.
46 # - See https://github.com/ossf/scorecard-action#publishing-results.
47 publish_results: true
48
49 # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
50 # format to the repository Actions tab.
51 - name: "Upload artifact"
52 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
53 with:
54 name: SARIF file
55 path: results.sarif
56 retention-days: 5
57
58 # Upload the results to GitHub's code scanning dashboard (optional).
59 # Commenting out will disable upload of results to your repo's Code Scanning dashboard
60 - name: "Upload to code-scanning"
61 uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5
62 with:
63 sarif_file: results.sarif