Debian Codegraph @

.github/workflows/scorecards.yml

raw symbols SCIP
1 # This workflow uses actions that are not certified by GitHub. They are provided
2 # by a third-party and are governed by separate terms of service, privacy
3 # policy, and support documentation.
4
5 name: Scorecard supply-chain security
6 on:
7 # For Branch-Protection check. Only the default branch is supported. See
8 # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
9 branch_protection_rule:
10 # To guarantee Maintained check is occasionally updated. See
11 # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
12 schedule:
13 - cron: '20 7 * * 2'
14 push:
15 branches: ["develop"]
16
17 permissions:
18 contents: read
19
20 jobs:
21 analysis:
22 name: Scorecard analysis
23 runs-on: ubuntu-latest
24 permissions:
25 # Needed to upload the results to code-scanning dashboard.
26 security-events: write
27 # Needed to publish results and get a badge (see publish_results below).
28 id-token: write
29 contents: read
30 actions: read
31 # To allow GraphQL ListCommits to work
32 issues: read
33 pull-requests: read
34 # To detect SAST tools
35 checks: read
36
37 steps:
38 - name: Harden Runner
39 uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
40 with:
41 egress-policy: audit
42
43 - name: "Checkout code"
44 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
45 with:
46 persist-credentials: false
47
48 - name: "Run analysis"
49 uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
50 with:
51 results_file: results.sarif
52 results_format: sarif
53 # (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
54 # - you want to enable the Branch-Protection check on a *public* repository, or
55 # - you are installing Scorecards on a *private* repository
56 # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
57 # repo_token: ${{ secrets.SCORECARD_TOKEN }}
58
59 # Public repositories:
60 # - Publish results to OpenSSF REST API for easy access by consumers
61 # - Allows the repository to include the Scorecard badge.
62 # - See https://github.com/ossf/scorecard-action#publishing-results.
63 # For private repositories:
64 # - `publish_results` will always be set to `false`, regardless
65 # of the value entered here.
66 publish_results: true
67
68 # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
69 # format to the repository Actions tab.
70 - name: "Upload artifact"
71 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
72 with:
73 name: SARIF file
74 path: results.sarif
75 retention-days: 5
76
77 # Upload the results to GitHub's code scanning dashboard.
78 - name: "Upload to code-scanning"
79 uses: github/codeql-action/upload-sarif@fc7e4a0fa01c3cca5fd6a1fddec5c0740c977aa2 # v3.28.14
80 with:
81 sarif_file: results.sarif