-
Notifications
You must be signed in to change notification settings - Fork 272
40 lines (35 loc) · 1.27 KB
/
scorecards.yml
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
name: Scorecards analysis
on:
branch_protection_rule:
schedule:
- cron: '21 6 * * 1'
push:
branches: [ develop ]
workflow_dispatch:
permissions: {}
jobs:
analysis:
name: Scorecards analysis
runs-on: ubuntu-latest
permissions:
# NOTE: If you add security critical permissions, start pinning used actions
security-events: write # for uploading to code-scanning dashboard
id-token: write # for publishing results in scorecard public dataset
actions: read
contents: read
steps:
- name: "Checkout code"
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: "Run analysis"
uses: ossf/scorecard-action@v2 # unpinned since this is not security critical
with:
results_file: results.sarif
# sarif format required by upload-sarif action
results_format: sarif
# "repo_token" not set because personal access tokens are dangerous.
# This means Branch-Protection check will not have correct results.
publish_results: true
- name: "Upload to code-scanning dashboard"
uses: github/codeql-action/upload-sarif@v2 # unpinned since this is not security critical
with:
sarif_file: results.sarif