This repository was archived by the owner on Oct 28, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Scorecards supply-chain security
2+ on :
3+ workflow_dispatch :
4+ schedule :
5+ # Weekly on Saturdays.
6+ - cron : " 30 1 * * 6"
7+ push :
8+ branches :
9+ - main
10+
11+ permissions : read-all
12+
13+ jobs :
14+ analysis :
15+ name : Scorecards analysis
16+ runs-on : ubuntu-latest
17+ permissions :
18+ actions : read
19+ contents : read
20+
21+ steps :
22+ - name : " Checkout code"
23+ uses : actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
24+ with :
25+ persist-credentials : false
26+
27+ - name : " Run analysis"
28+ uses : ossf/scorecard-action@72803a12483ed6f4f7c34f804818169f50162e37
29+ with :
30+ results_file : ossf-results.json
31+ results_format : json
32+ publish_results : false
33+
34+ - name : " Add metadata"
35+ run : |
36+ full_repo="${{ github.repository }}"
37+ OWNER=${full_repo%/*}
38+ REPO=${full_repo#*/}
39+ jq -c '. + {"metadata_owner": "'$OWNER'", "metadata_repo": "'$REPO'", "metadata_query": "ossf"}' ossf-results.json > ossf-results-modified.json
40+
41+ - name : " Post results to Sentinel"
42+ uses : cds-snc/sentinel-forward-data-action@main
43+ with :
44+ file_name : ossf-results-modified.json
45+ log_type : GitHubMetadata_OSSF_Scorecard
46+ log_analytics_workspace_id : ${{ secrets.LOG_ANALYTICS_WORKSPACE_ID }}
47+ log_analytics_workspace_key : ${{ secrets.LOG_ANALYTICS_WORKSPACE_KEY }}
You can’t perform that action at this time.
0 commit comments