File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : OpenSSF Scorecard Analysis
2
2
3
3
on :
4
- # For Branch-Protection check. Only the default branch is supported.
5
4
branch_protection_rule :
6
- # To guarantee Maintained check is occasionally updated.
7
5
push :
8
6
branches : [ main ]
9
- # For manual triggering
10
7
workflow_dispatch :
11
- # Run weekly to track progress
12
8
schedule :
13
- - cron : ' 0 0 * * 1' # Run every Monday at midnight
9
+ - cron : ' 0 0 * * 1'
14
10
15
11
permissions : read-all
16
12
19
15
name : OpenSSF Scorecard Analysis
20
16
runs-on : ubuntu-latest
21
17
permissions :
22
- # Needed to upload the results to code-scanning dashboard.
23
18
security-events : write
24
- # Needed to publish results and get a badge (see publish_results below).
25
19
id-token : write
26
20
27
21
steps :
@@ -35,21 +29,16 @@ jobs:
35
29
with :
36
30
results_file : results.sarif
37
31
results_format : sarif
38
- # A read-only PAT token, which is needed for the Branch-Protection check.
39
32
repo_token : ${{ secrets.SCORECARD_TOKEN }}
40
- # Publish results to enable scorecard badges. For more details, see
41
- # https://github.com/ossf/scorecard-action#publishing-results
42
33
publish_results : true
43
34
44
- # Upload the results as artifacts.
45
35
- name : " Upload artifact"
46
36
uses : actions/upload-artifact@v4
47
37
with :
48
38
name : SARIF file
49
39
path : results.sarif
50
40
retention-days : 5
51
41
52
- # Upload the results to GitHub's code scanning dashboard.
53
42
- name : " Upload to code-scanning"
54
43
uses : github/codeql-action/upload-sarif@v3
55
44
with :
You can’t perform that action at this time.
0 commit comments