Debian Codegraph @

.github/workflows/scorecard.yml

raw
1 name: Scorecard Supply-Chain Security
2 on:
3 branch_protection_rule:
4 schedule:
5 - cron: "39 7 * * 4"
6 push:
7 branches: ["main"]
8
9 permissions:
10 contents: read # Set default read-only permissions
11
12 jobs:
13 analysis:
14 name: Scorecard Analysis
15 runs-on: ubuntu-latest
16 if: github.event.repository.default_branch == github.ref_name
17 permissions:
18 security-events: write # For upload results to code-scanning dashboard
19 id-token: write # For publishing results and getting a badge
20
21 steps:
22 - name: Harden the Runner (Step Security)
23 uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
24 with:
25 egress-policy: audit
26
27 - name: Checkout Repo
28 uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
29 with:
30 persist-credentials: false
31
32 - name: Run OSSF Analysis
33 uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
34 with:
35 results_file: results.sarif
36 results_format: sarif
37 publish_results: true
38
39 - name: Upload Artifact
40 uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
41 with:
42 name: SARIF file
43 path: results.sarif
44 retention-days: 5
45
46 - name: Upload to GitHub Code Scanning Dashboard
47 uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
48 with:
49 sarif_file: results.sarif