-
Notifications
You must be signed in to change notification settings - Fork 50
47 lines (41 loc) · 1.16 KB
/
Copy pathscorecard.yml
File metadata and controls
47 lines (41 loc) · 1.16 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
name: Scorecard
on:
branch_protection_rule:
push:
branches: [master]
schedule:
- cron: '39 1 * * 3'
workflow_dispatch:
permissions: {}
jobs:
analysis:
name: OpenSSF Scorecard
runs-on: ubuntu-latest
permissions:
checks: read
contents: read
id-token: write
issues: read
pull-requests: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- name: Run Scorecard
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a
with:
results_file: results.sarif
results_format: sarif
publish_results: true
- name: Upload Scorecard artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: scorecard-sarif
path: results.sarif
retention-days: 14
- name: Upload Scorecard to code scanning
uses: github/codeql-action/upload-sarif@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81
with:
sarif_file: results.sarif