-
Notifications
You must be signed in to change notification settings - Fork 100
57 lines (53 loc) · 1.42 KB
/
security-scorecard.yml
File metadata and controls
57 lines (53 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Runs OSSF
#
# Description:
# Runs OpenSSF Scorecard scan on the project
#
# Triggers:
# - branch_protection_rule
# - cron: 09:00AM
# - push
# - workflow_dispatch
#
# Secrets:
# - Security.SCORECARD_TOKEN
on:
branch_protection_rule:
schedule:
- cron: "0 9 * * *"
push:
branches: [main]
workflow_dispatch: {}
name: OpenSSF Scorecard
run-name: OpenSSF Scorecard
permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
environment: Security
permissions:
security-events: write
id-token: write
steps:
- name: Checkout Repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: Run Analysis
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
with:
results_file: results.sarif
results_format: sarif
publish_results: true
repo_token: ${{ secrets.SCORECARD_TOKEN }}
- name: Upload Results
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: SARIF file
path: results.sarif
retention-days: 5
- name: Upload to Code-Scanning
uses: github/codeql-action/upload-sarif@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v3.29.5
with:
sarif_file: results.sarif