Debian Codegraph @

.github/workflows/scorecard.yml

raw symbols SCIP
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@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
24 with:
25 egress-policy: audit
26
27 - name: Checkout Repo
28 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
29 with:
30 persist-credentials: false
31
32 - name: Run OSSF Analysis
33 uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
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@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4.37.8
48 with:
49 sarif_file: results.sarif